Article · Free · Files · Thai encoding
Thai text garbled in a file: fix TXT, CSV, SRT and ZIP
You open a .txt from an old program and see strange characters. You double-click a CSV and Excel shows Thai as nonsense. Thai subtitles show as boxes in a video player, or you unzip a file and the file names are unreadable. These usually come from one cause: the file stores letters one way and the program reading it expects another. This article fixes each case with our free tools, which run entirely in your browser, so files stay on your device.
Why Thai text goes wrong
A text file does not store the word "Thai". It stores numbers, and the program must know which table of letters to turn them back with. Older programs and older Thai Windows usually saved Thai as TIS-620 (also called Windows-874). The web, phones and current programs use UTF-8. The file carries no label saying which, so the program guesses, and a wrong guess shows up as strange characters such as "สว" or "ÊÇÑÊ´Õ", or as boxes and "�" marks.
One warning first: if you open a garbled file and save over it, some letters can be lost for good. A "�" stored in the file itself cannot be brought back. Keep the original file and repair from that.
The symptoms, and what to use
- A .txt (or other text file) that cannot be read: use Fix a Thai file that shows as garbage
- An old program (accounting, government, a printer) that only accepts TIS-620: use the Text file encoding converter the other way
- A CSV that opens garbled in Excel, or a CSV from Thai Excel that is garbled elsewhere: use Thai CSV that opens right in Excel
- A .srt subtitle file whose Thai shows as boxes: use the SRT and VTT subtitle converter
- An unzipped file whose Thai names are strange characters: use Unzip with garbled Thai file names
A .txt that will not read: TIS-620 to UTF-8
- Open Fix a Thai file that shows as garbage and choose the file, or paste the unreadable text into the box (the "Example" button puts in a garbled sample to try).
- The tool reads the file every way Thai files are usually written and puts the likeliest one first, each with a sample. See which one reads properly. If the first is wrong, pick another.
- Press Save as UTF-8. You get a file with the same name that opens on computers, phones and the web (tick "add a BOM" if it is a CSV that will open in Excel).
If the text you see is like "สวัส" or "เธชเธงเธฑ", the tool can usually read it back too. If the "�" marks are already inside the file, the tool warns that it was saved over, and it cannot be recovered.
An old program needs TIS-620 (going the other way)
Sometimes the problem is reversed: the file is normal UTF-8 but an old program only reads TIS-620. Use the Text file encoding converter, which converts between UTF-8 (with or without BOM), TIS-620 and UTF-16.
- Choose the file. The tool guesses the source encoding and shows the first lines. If they are unreadable, choose the source encoding yourself.
- Choose "Convert to" to match the target program: an old program takes TIS-620, and the web and current programs take UTF-8.
- Press Convert and save.
TIS-620 holds only Thai, English, digits and basic punctuation. Emoji and other scripts do not fit. The tool says which character is on which line and lets you choose. If you must keep them, save as UTF-8 instead.
Thai CSV in Excel
A CSV does not say how its letters are stored, so Excel on Windows guesses the machine's own encoding. A UTF-8 CSV from the web or Google Sheets can therefore show as garbage. Adding a BOM (three bytes at the start of the file) tells Excel it is UTF-8. In the other direction, a CSV saved by Thai Excel is often TIS-620, which other programs read as garbage and which needs converting to UTF-8.
- Open Thai CSV that opens right in Excel and choose the CSV. The tool guesses the encoding and delimiter and shows the first 10 rows as a table. If the Thai in the table is still wrong, choose the source encoding yourself.
- Choose where you will open it: Excel (UTF-8 with BOM, recommended), older Excel or older Thai programs (TIS-620), or Google Sheets and other programs (UTF-8, no BOM).
- Press Save the file, then open the new file in Excel.
If the delimiter stays the same the content is not touched, only the way letters are stored changes. If you change the delimiter (comma, semicolon or Tab) the file is rewritten, and the tool also checks that every row has the same number of fields. If you want a real .xlsx file instead of a CSV, see the article on converting Excel, CSV, Word and Markdown.
Thai SRT subtitles
Thai subtitles from an old tool are often TIS-620. A player that expects UTF-8 then shows boxes or strange characters. The SRT and VTT subtitle converter guesses the file's encoding and always saves as UTF-8. It also converts SRT to VTT (for the web) or back, and shifts every time in the file.
- Choose the .srt or .vtt. The tool picks the format to convert to (SRT to VTT). To stay on SRT, choose SRT: it saves an SRT file in UTF-8.
- If the subtitles drift from the sound, enter how many seconds to shift: plus makes them later, minus earlier. Some older TVs or players need a BOM in the SRT file to read Thai correctly: tick "add a BOM" if you want it.
- Check the result box, then press Save the subtitles. The file keeps its name.
We checked only what the tool page and the saved file show. We have not opened the result in every video player or TV. If a player still cannot read Thai, try ticking the BOM.
A ZIP with garbled Thai file names
A ZIP made on Thai Windows often stores file names the old way (TIS-620). Unzipped on a Mac, a phone or non-Thai Windows, the names come out unreadable. Unzip with garbled Thai file names decodes the names, lets you save files one at a time, or makes a new ZIP that stores names as UTF-8.
- Choose the ZIP. The files inside are listed with their names already decoded as TIS-620.
- If the names are still unreadable (a ZIP from Japan or China, say), change "File names are written in" and see which reads well.
- Press Save on a file, or Make a new ZIP with readable names. The new file keeps the name with -utf8 added.
We made a new ZIP from the sample and every name in it carried the UTF-8 flag, which current unzip programs should read correctly. Each file is checked against its checksum (CRC-32) before saving. Password-protected ZIPs, ZIP64 and split ZIPs cannot be opened by this tool; for a password-protected one try Extract a ZIP file.
Limits of our tools
- The tool guesses; it does not know. It counts Thai letters in the right order (vowels and tone marks after a consonant) and takes points off for "�". A very short file or one with little Thai can be guessed wrong, so look at the samples and choose yourself.
- It knows UTF-8, UTF-16, TIS-620 (Windows-874) and the three garbled forms above. It does not know the encodings of other languages such as Chinese or Japanese in text files (for ZIP file names you can choose other languages, as far as your browser supports them).
- It can only repair files that still hold the original letters. A file saved over until it contains "�" cannot be recovered.
- Text files only. Word, Excel (.xlsx) and PDF are not text files. Text files up to 100 MB, subtitle files up to 20 MB. A ZIP over 500 MB asks first, and over 2 GB it will not open; on some phones it may fail well below that.
- SRT and VTT: going from VTT to SRT drops NOTE, STYLE and REGION blocks, cue positions and colour or speaker tags, because SRT has none. Other subtitle types such as .ass, .ssa and .sub are not supported.
- ZIP: ordinary ZIPs only, not .rar or .7z.
- We have not opened the results in every version of Excel or every player. We checked that the saved files start with a BOM or are UTF-8 as chosen, and that names in the new ZIP carry the UTF-8 flag. The garbled forms like "สว" that the tool page says it can read back we have not tried on a real file.
Which to use
- A text file you cannot read: fix a Thai file that shows as garbage, then save as UTF-8
- An old program that needs TIS-620: the text file encoding converter
- A CSV that is garbled in Excel or in Google Sheets: Thai CSV that opens right in Excel
- Thai subtitles in a player: the SRT and VTT converter
- Garbled names in a ZIP: unzip with garbled Thai file names
All the file converters
Every file converter on this site is free, needs no sign-up and runs in your browser, so your files are not sent anywhere. See them all on the file converters page, which also has two tools for people who publish books on Amazon KDP: the interior PDF maker and the cover size calculator.
More file converter articles
- Create a password protected ZIP, open ZIP and tar.gz files, and lock a file with a password
- Convert Excel to CSV, Word to text, and HTML to Markdown
- Video to image: save one frame, many frames, or a short GIF
- Convert audio to MP3 or WAV, and extract the audio from a video
- Move contacts and a calendar into a spreadsheet, and convert JSON and XML
Problems and ideas
A tool does not behave the way this says, or there is one you wish we had? Tell us on the feedback page. No sign-up needed.
Written on 2 December 2026. Every picture was taken from the real tools on this site, with sample files whose names and figures are invented. Product names of other companies are trademarks of their owners; freesabai is not affiliated with them.
Questions and answers
Can text that turned into � be recovered?
It depends on whether the "�" is stored in the file or only shown by the program. If the file still holds the original data and was just opened the wrong way, the fix tool can read it. If the file was saved over and the "�" is inside it, the letters are gone and cannot be recovered from that file; you need the original.
What is the difference between TIS-620 and UTF-8, and which should I choose?
TIS-620 (Windows-874) is the older Thai encoding and holds only Thai and English. UTF-8 holds every language including emoji and is what the web, phones and current programs use. Choose UTF-8 by default, and TIS-620 only when an old program that will use the file requires it.
Are the files I use sent to a server?
No. The tools run entirely in your browser. Files and text are not sent to the freesabai server and are not kept in the browser, and closing the page clears everything.