Log file conversion

Mission planner can convert a .tlog file or .bin to a text file. Is there a way to do the opposite? So for example, convert a .tlog into a .txt, do some adjustments and convert it back to .tlog to do analysis?

Anybody who can help?