UTF-8 Validator
Check pasted text survives a UTF-8 round-trip in your browser. Lone surrogates are refused with the exact offset. Nothing is uploaded.
What this utf-8 validator does
The page encodes the text as UTF-8 and decodes it back, which is the round-trip every file save and every network send performs: matching output means the text is safe to store anywhere. A lone surrogate — a high or low half without its partner — cannot survive that trip, so it is refused with its exact UTF-16 offset instead of being silently replaced. A text that passes is reported with its byte count, which is the number that matters when a protocol charges by the byte.
How to use it
UTF-8 Validator: paste the text into the box above, and press Run to get the validation report below.
Worked example
Input:
hello
Output:
Valid UTF-8 (5 bytes)
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns validation report; reloading the page discards both.
The page encodes the text as UTF-8 and decodes it back, which is the round-trip every file save and every network send performs: matching output means the text is safe to store anywhere. A lone surrogate — a high or low half without its partner — cannot survive that trip, so it is refused with its exact UTF-16 offset instead of being silently replaced. A text that passes is reported with its byte count, which is the number that matters when a protocol charges by the byte.
Check pasted text survives a UTF-8 round-trip in your browser. Lone surrogates are refused with the exact offset. Nothing is uploaded.
How to use it
UTF-8 Validator: paste the text into the box above, and press Run to get the validation report below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns validation report; reloading the page discards both.
What to Expect
Best for
- Converting text to validation report when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
hello
Sample output
Valid UTF-8 (5 bytes)
Frequently asked questions
How do I use the utf-8 validator?
UTF-8 Validator: paste the text into the box above, and press Run to get the validation report below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.