Text · Made a little simpler

UTF-8 Validator

Validate a local file or hexadecimal bytes against the UTF-8 rules. Inspect the invalid spans and download a report or decoded copy with replacements.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

UTF-8 Validator: how to use it

  1. Select Local file to check the original bytes or use Hexadecimal bytes for a recorded byte sequence. Pasted text is encoded into UTF-8 first.
  2. Select Validate UTF-8. Check the summary, then open Errors or Byte view for exact locations and byte values.
  3. Download the JSON evidence or switch to Decoded text to save a UTF-8 copy with U+FFFD where bytes were rejected.

Limits and notes

Files up to 2 MiB, hexadecimal input up to 256 KiB of bytes and pasted text up to 300,000 UTF-16 units. Counts and the byte view cover the full input. The errors table and JSON report include the first 2,500 details.

How your privacy works →

UTF-8 Validator: common questions

What does valid UTF-8 mean?

Every byte belongs to a valid UTF-8 sequence. ASCII, an empty byte stream and some control characters also satisfy the encoding rules.

How do I find an invalid byte in the original file?

Open Errors and select its offset to see the original byte in Byte view. Offsets count from zero and include any leading byte-order mark.

Why is pasted text usually valid?

Your browser already has the characters. The tool encodes them as UTF-8 before checking. Use the original file or known hex bytes to diagnose the original encoding.

Can the decoded copy restore a missing character?

The browser puts U+FFFD at each rejected span and preserves supported surrounding characters. Use the original encoding or an earlier copy to recover the intended character.

What does an alternative encoding hint tell me?

A byte-order mark or sampled byte patterns can support another decoding. A hint is evidence to review. Strict UTF-8 validity is calculated from the whole input.

Guides