# Editing TPR file

**URL:** <https://gromacs.bioexcel.eu/t/editing-tpr-file/2693>\
**Category:** User discussions\
**Created:** [August 18, 2021, 4:04pm UTC](https://gromacs.bioexcel.eu/t/editing-tpr-file/2693 "2021-08-18T16:04:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daadoosh](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@daadoosh](https://gromacs.bioexcel.eu/u/daadoosh)\
**Post date:** [August 18, 2021, 4:04pm UTC](https://gromacs.bioexcel.eu/t/editing-tpr-file/2693/1 "2021-08-18T16:04:03Z")

</div>

GROMACS version: 2018.2  
GROMACS modification: No

Dear users,

I have a txt file and I wish to convert it to a tpr file.

This txt file was already a tpr file in the past. I just converted it to a txt file in order to edit some of the atom type lines. Now I wish to use it as a tpr file again.

Does anyone have a suggestion how to do this?

Thanks a lot,

Benny

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [August 19, 2021, 8:50am UTC](https://gromacs.bioexcel.eu/t/editing-tpr-file/2693/2 "2021-08-19T08:50:12Z")

</div>

Hi,  
I am not aware of any tools that can convert back txt file (originally tpr) in tpr.  
Maybe gmx convert-tpr can do the change you want in original tpr.  
[https://manual.gromacs.org/current/onlinehelp/gmx-convert-tpr.html](https://manual.gromacs.org/current/onlinehelp/gmx-convert-tpr.html)  
Best regards  
Alessandra
