Skip to developer tool
DEVELOPER TOOLKIT INSPECT & UNDERSTAND

Text Encoding Inspector & Converter V3

Convert file bytes and Unicode text with evidence you can inspect. Keep captions and developer file extensions, review optional transformations and export a verified batch.

No uploads · No account · Strict decoding

BUILT FOR THE DETAILS
  1. 01Add your input
  2. 02Inspect & convert
  3. 03Review the output
Explore all developer tools

Inspect the source, choose the output

Local files · Strict conversion

No file selected.

Up to 16 MiB. Auto uses a supported BOM or valid UTF-8; it does not guess legacy encodings. UTF-8 validity alone does not prove a file is text.

Creator presets and portable recipes
Inspect original source bytes (HEX/ASCII)

Raw source bytes

Offsets and printable ASCII; first 256 bytes from selected source. No charset guessing.

How to inspect and convert a text file

  1. Choose a text file. Leave source on Auto for BOM-marked Unicode or valid UTF-8, or explicitly select the encoding used by your source.
  2. Choose UTF-8, UTF-16 little/big-endian, Windows-1252, exact Latin-1 or ASCII output. Select a BOM for Unicode output if required by your receiving application.
  3. Preserve line endings or normalize CRLF, LF and CR to LF or CRLF. Choose Inspect & convert.
  4. Review the source evidence, control-character counts and literal preview. Download the converted text or metadata report.

Detection evidence, not an encoding guess

Auto recognizes UTF-8 and UTF-16 BOM signatures. UTF-32 BOM signatures are recognized and rejected because UTF-32 is outside this tool's supported formats. The prefix FF FE 00 00 can also represent a UTF-16LE BOM followed by U+0000: Auto rejects that ambiguity, but you can explicitly select UTF-16LE when you know the file format. Without a BOM, Auto accepts only strictly valid UTF-8. If validation fails, select the known source encoding explicitly.

ASCII-range bytes are valid UTF-8 and compatible with many other encodings. Some legacy-encoded files also happen to be valid UTF-8. Validity does not establish the author's intended encoding or prove that binary bytes are text. NUL and control-character counts help you review the result; they are not a binary-file detector.

Strict conversion and supported encodings

Malformed UTF-8, odd/truncated UTF-16, unpaired surrogates and non-ASCII bytes in ASCII mode stop decoding. A BOM that conflicts with an explicit source selection also stops conversion. Invalid data is not replaced silently. If a Unicode character is not representable in Windows-1252, Latin-1 or ASCII output, no converted download is created.

Latin-1 here maps bytes 0–255 directly to U+0000–U+00FF. It is distinct from Windows-1252, whose 0x80–0x9F range includes the euro sign and smart punctuation. This tool uses its own deterministic Windows-1252 table; it does not rely on ambiguous browser labels for either Windows-1252 or exact Latin-1.

BOM and newline behavior

One matching input BOM is consumed as a signature. Additional U+FEFF characters remain content. Output BOM selection controls an additional leading signature for UTF-8/UTF-16 only. UTF-16 byte order is always explicit.

Preserve keeps CRLF, lone LF and lone CR exactly in the converted bytes. Normalization changes only those line-ending sequences; it does not modify Unicode line separators, whitespace, normalization forms or character content otherwise. The preview may not visibly distinguish every control character, so use the counts or inspect the downloaded bytes.

Convert a known legacy text file while checking line endings

  1. Use your own plain-text file with a known source encoding, or choose Try Windows-1252 sample. The built-in sample selects Windows-1252 input, UTF-8 output and preserved newlines.
  2. Inspect accented text, the euro sign and quotation marks in that sample. Auto mode does not guess Windows-1252 when there is no supported BOM and the bytes fail strict UTF-8.
  3. Choose Preserve exactly when mixed CRLF/LF endings are intentional. Choose LF or CRLF normalization only when changing them is appropriate for the recipient.
  4. Review newline counts as well as the preview. In the built-in sample, the source has one CRLF and one lone LF; a visual text preview may not make that distinction obvious.
  5. Set the output BOM choice deliberately, convert, then download the full output. Changing source/target options invalidates the earlier result and requires another conversion.

A legacy target such as ASCII cannot represent every Unicode character. An error is a reason to choose a suitable encoding rather than assume accented text will survive. The preview can be truncated while the downloadable output is complete.

This documents the existing sample and manual review steps, not a new conversion result. The tool does not repair arbitrary previous mojibake or convert binary document containers. Use File Type & Hex Inspector for byte evidence or CSV Editor for its supported delimited-text import workflow.

Limits and privacy

Single input files are limited to 16 MiB, batch files to 16 items/32 MiB combined and each converted output to 64 MiB. Processing runs in a worker with a 15-second deadline. The preview is limited to 65,536 UTF-16 code units and never splits a surrogate pair. Downloads include the full output. Changes to settings or files invalidate the previous output; Cancel stops processing and Clear releases the selected file and download URLs.

No source bytes or converted text are uploaded, saved in browser storage, executed or rendered as HTML. The original file is never overwritten. Metadata reports contain the original filename and conversion statistics, which may still be private. This tool handles plain-text encoding only; it does not repackage DOCX, PDF, compressed files or other binary containers.

Encoding behavior is based on the WHATWG Encoding Standard and the browser's text decoding API.

V3 creator publishing and migration

Keep .srt, .vtt, .md, .csv and .json filename extensions during conversion. Source evidence is not an encoding guess: check the BOM, raw hex, strict UTF-8 validity and decoded text before choosing a legacy codec. File mode does not change the selected original; text mode uses explicitly pasted Unicode text.

NFC/NFD and compatibility normalization, trailing whitespace removal and final newline are opt-in and may change source text. JSON/subtitle/XML/HTML indicators are advisory; converting character bytes does not validate a publishing platform, preserve a mismatched XML/HTML charset declaration or repair broken timestamps. Batch ZIP exports include the successfully converted files and separate status reports, with failed files identified rather than silently altered. Raw source content is not embedded in reports.

Frequently asked questions

Why does Auto reject my Windows-1252 file?

Without a supported BOM, Auto only accepts strict UTF-8. Choose Windows-1252 explicitly if that is the file's known encoding.

Can this repair text that already contains mojibake?

It converts the source bytes using your selected encoding. It does not guess or automatically undo previous incorrect decoding and re-encoding steps.

Why did ASCII conversion fail?

ASCII supports only U+0000–U+007F. Choose a Unicode output encoding to preserve characters outside that range.

Continue your workflow

Decode source bytes with the intended encoding

Choose the known source encoding when automatic mode cannot identify it, then select a supported output encoding. Inspect converted text before keeping the download.

Scope of this workflow

This does not repair arbitrary earlier mojibake or repackage binary document containers. A metadata report can retain filenames and conversion statistics.

Base64 Encoder & Decoder - Text, Files & Data URIs · All developer tools · Privacy policy · Contact PixelOkay