Skip to content
OnlineToolStudio

Convert File to UTF-8

runs in your browserno sign-upfree

Convert text, CSV and subtitle files from ANSI, Windows-1252, Shift_JIS, GBK and other encodings to UTF-8. The encoding is detected; files stay on your device.

Only have the garbled text (like é or ’)? Fix garbled text repairs it directly.

About this tool

Convert text files from old encodings to UTF-8 — the encoding modern apps, websites and phones expect. Drop in a TXT, CSV, SRT subtitle, HTML or code file saved as “ANSI” (Windows-1252), Windows-1251 Cyrillic, Central European, Greek, Turkish, Hebrew, Arabic, Shift_JIS, EUC-JP, GBK, Big5, EUC-KR, UTF-16 or another encoding. The encoding is detected for you, you can check the preview and change it, and the file downloads as UTF-8 with the same name — several at once as a ZIP.

How to use

  1. Drop one or more text files on the page.
  2. Check the detected encoding and the preview — accented letters and symbols should look right.
  3. If they don’t, choose another encoding from the list.
  4. Download the UTF-8 file, or all files as a ZIP.

FAQ

What is ANSI, and how is it different from UTF-8?

“ANSI” is what Windows calls its older one-byte encoding — Windows-1252 for Western languages, Windows-1251 for Cyrillic and so on. Each covers only about 250 characters, and files from different countries can’t be told apart. UTF-8 covers every language and emoji, and is the standard on the web, so converting avoids accented letters turning into strange symbols.

How is the encoding detected?

A byte-order mark settles it at once. Otherwise the file is checked for valid UTF-8, then UTF-16, then read with each common encoding and the most natural-looking result wins — real words instead of symbols glued to letters or mixed alphabets. Very short files or files with few accented letters can be ambiguous, so check the preview.

Should I add a BOM (byte-order mark)?

For CSV files opened in Excel, yes — without the BOM, Excel may assume an old encoding and show é as é. That is the default here. Most other programs and websites prefer UTF-8 without a BOM, and some scripts break on it.

How do I convert subtitles (SRT) to UTF-8?

Drop the .srt file here, check that the accented or non-Latin letters look right in the preview, and download it. TVs, media players and video sites read UTF-8 subtitles reliably; older encodings often show as boxes or symbols.

Are my files uploaded?

No. Files are read and converted in your browser and never leave your device.

Related tools

All tools