Batch files (.bat) are basically a text files, you do not need to convert them to be able to open and edit them using a text editor. If you want to, you can simply rename bat to txt, but no actual bat to txt conversion is needed or required for it to work.
Open BAT file Open TXT file