Neatbo.

TXT to UTF-8

Read a TXT file with the right source encoding and save it as UTF-8.

Browser-local processingInputTXTOutputUTF-8 TXTUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

or drag and drop it here

Files stay on this device. Your originals stay unchanged.

.txt

Up to 10 MiB per file · File limit: 1

    Options

    Complete the required options first. You can keep the defaults for the rest.

    Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.⌘ / Ctrl + Enter to run

    Preparing the tool…

    Before you start

    Read one TXT file as UTF-8, GB18030/GBK or Big5 and save a new UTF-8 file. Read and confirm the decoded preview excerpt before converting, including UTF-8 input. The default setting checks UTF-8 strictly; it does not detect the source encoding. A wrong legacy encoding can still produce text, so compare the words with the original.

    How to use this tool

    1. Choose one local .txt file and select its input encoding.
    2. Select “Read local preview”, read the excerpt and confirm that it is readable. Keep the original line endings or choose LF or CRLF; add a UTF-8 BOM only if the receiving application needs it.
    3. Select “Convert to UTF-8”, then copy or download the result. Open the saved TXT in the receiving application and check the complete text and line endings.

    Supported inputs and limits

    One TXT file, up to 10 MiB. Filenames are limited to 512 characters; some characters, such as emoji, count as two. The preview shows only the beginning of the file, so check the complete result after conversion. Zero-byte files are rejected.

    Worked example

    Example input

    legacy-gb18030.txt
    Example options
    {
      "encoding": "gb18030",
      "encodingConfirmed": true
    }

    Example output

    你好,世界。
    第二行

    When something does not work

    Keep the original file. If decoding fails or the preview looks wrong, check the file’s source encoding and choose it from the “Input encoding” list: UTF-8, GB18030/GBK or Big5. Read the preview again and confirm it only when the text is readable. Changing the file or encoding clears the earlier confirmation. If none of those encodings gives the expected text, obtain a correctly encoded source copy; exporting cannot restore damaged text. For files over 10 MiB, make smaller TXT copies first.

    Frequently asked questions

    Are my files uploaded?

    No. Files and tool input are processed in your browser. A temporary workspace may remain while you move around the site in the same tab, but it has time and memory limits. Refreshing or closing the tab clears it. Download results you want to keep.

    What changes in the exported file?

    The output uses UTF-8. By default, “Keep original line endings” preserves CR, LF and CRLF, even when they are mixed; LF or CRLF makes them consistent. A leading input BOM is removed, and the output has no BOM unless you enable it. The tool does not normalize Unicode or repair text that was already damaged. With UTF-8 input, a file containing only a BOM can export an empty file when the output BOM is off. Select “Copy result”, then paste the text into another app. To save a UTF-8 TXT file, select “Download”.

    Documentation & further reading

    Related tools