freesabai

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 that will not read: TIS-620 to UTF-8

  1. 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).
  2. 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.
  3. 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).
The fix-a-Thai-file tool with two readings to choose from: TIS-620 at the top, readable, and UTF-8 below it as garbage, then the readable text and a Save as UTF-8 button
A sample file that we wrote as real TIS-620. The tool puts TIS-620 first (168 Thai letters), while reading it as UTF-8 gives 92 × � marks. The readable text is in the box below.

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.

  1. Choose the file. The tool guesses the source encoding and shows the first lines. If they are unreadable, choose the source encoding yourself.
  2. Choose "Convert to" to match the target program: an old program takes TIS-620, and the web and current programs take UTF-8.
  3. Press Convert and save.
The text encoding converter with customer-list.txt chosen and set to convert to TIS-620, a warning that 1 character does not exist in TIS-620 (an emoji), and a question to write ? instead or cancel
A sample UTF-8 file with an emoji 😊 on line 4. Asked to convert to TIS-620, the tool says 1 character is missing from TIS-620 and asks whether to write ? instead or cancel. Nothing has been saved yet.

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.

  1. 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.
  2. 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).
  3. Press Save the file, then open the new file in Excel.
The Thai CSV tool with Excel chosen as the target, the source encoding and delimiter choices, a table of 9 rows of Thai sales data, and a line saying it will save as UTF-8 with BOM
A sample CSV that is UTF-8 without a BOM. The tool reads the Thai correctly, shows 9 rows of 5 fields, and is set to save as UTF-8 with BOM for 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.

  1. 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.
  2. 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.
  3. Check the result box, then press Save the subtitles. The file keeps its name.
The SRT and VTT converter set to convert to SRT with a shift of 0 and read as TIS-620, the result box showing the first two Thai cues readable, and a summary line of 5 cues running to 18 seconds
A sample subtitle file, written as real TIS-620: 5 cues running to 00:00:18,000. The tool reads it as TIS-620, the result box shows the Thai correctly, and the target is SRT (SRT → SRT) to save it as UTF-8.

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.

  1. Choose the ZIP. The files inside are listed with their names already decoded as TIS-620.
  2. If the names are still unreadable (a ZIP from Japan or China, say), change "File names are written in" and see which reads well.
  3. Press Save on a file, or Make a new ZIP with readable names. The new file keeps the name with -utf8 added.
The unzip-with-garbled-Thai-names tool with the encoding set to Windows-1252, three files whose names are strange characters and an English readme.txt that reads normally
A sample ZIP where we stored the names as TIS-620 (without the UTF-8 flag), set to read as Windows-1252 (Western). All three Thai names turn into strange characters, the same kind of result you get when a ZIP is read as Western.
The unzip tool with the encoding set to TIS-620, four files listed with Thai names that read correctly, each with a Save button, and a button to make a new ZIP with readable names
The same ZIP set to TIS-620 (the default): all four names read correctly, including the one in a sub-folder. 3 names needed decoding.

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

Which to use

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

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.