Toolvito

Calculates on this device. File exports run online.

Encoding Validator & Repair Tool

Find out why a file shows strange characters. Check whether it is valid UTF-8, with the place of every bad byte, see its byte order mark, line endings and hidden characters, then write it again repaired: mojibake such as é turned back into é, invisible characters removed, in UTF-8 or another encoding. Pasted text and escaped characters can be checked too.

Enter your values

Valid UTF-8, the byte order mark, line endings and characters to look at, with byte offsets.

Your values

Any text file of up to 64 MB: CSV, TXT, JSON, XML, subtitles, code. It is read in this browser and is not sent anywhere.

This is off unless you turn it on. Saved entries stay in this browser only. Untick the box to delete them.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Check or repair large files

Check or repair large files

Choose up to 20 text files of up to 1 GB each. Choose Repair to get each file written again with the changes below.

Or drop files here. TXT, CSV, TSV, TAB, JSON, JSONL, NDJSON, XML, HTML, HTM, MD, SRT, VTT, YAML, YML, INI, CFG, CONF, LOG, SQL, JS, MJS, CSS, PY, JAVA, C, H, CPP, CS, PHP, RB, GO, PROPERTIES, TEX, SVG, TOML or PO, up to 20 files, 1 GB each at most.

    More options

    Checks and repairs above run in your browser: the file is not sent anywhere. When you use this box, the files you choose are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to use it

    1. Choose Check a file and pick a text file: CSV, TXT, JSON, XML, subtitles or code. Every bad byte is listed with its byte offset, line and column.
    2. To fix the file, choose Repair or convert a file, tick what to repair, pick the encoding to write and press Repair the file. Download the new file.
    3. For text you have copied, choose Check or clean pasted text. For text full of codes such as \u00e9, é or %C3%A9, choose Find escaped characters.

    What the checks mean

    • Valid UTF-8: every byte belongs to a correct UTF-8 sequence. A bad sequence usually means the file, or part of it, was saved in another encoding such as Windows-1252.
    • Byte order mark (BOM): a few bytes at the start that some programs add. Excel likes one in a UTF-8 CSV; many scripts and web servers do not.
    • Mojibake: UTF-8 text that was read as Windows-1252 and saved again, so é became é and – became –. The repair turns the bytes back, also for text that went wrong twice.
    • Invisible characters: zero-width spaces and joiners, soft hyphens and bidirectional controls, which can break searches, code and data imports, or hide text.
    • Encoding (best guess): a file that is not UTF-8 is most often Windows-1252. That is a guess: a single-byte encoding cannot be known for sure from the bytes, so you can choose another under Read as.

    Large files and many files

    The box below checks or repairs up to 20 files of up to 1 GB each on the server, with the same rules. You get a CSV report of every problem and the repaired files.

    Related tools