UTF-8 Converter
Convert text to UTF-8 hex bytes, decimal bytes, \xAB or \u{HEX} escape sequences — and back.
How to use
- 1 Pick Text → Bytes (encode) or Bytes → Text (decode).
- 2 Choose output format on encode — hex, decimal, \xAB, or \u{HEX}.
- 3 Paste input. Decode auto-detects which format you used.
- 4 Copy the result.
Why use this tool
- Four output forms — hex, decimal, C/Python \x escapes, JS \u{} escapes.
- Smart decode — recognises hex/decimal/\x/\u input automatically.
- Surrogate-pair safe — codepoint escapes use full Unicode, not UTF-16 units.
- Pure browser logic, zero dependencies.
Frequently asked questions
What is the difference between \xAB and \u{HEX}?
\xAB is a single UTF-8 byte — multi-byte characters expand to several escapes. \u{HEX} is a Unicode codepoint — one escape per character regardless of UTF-8 length. JS template literals understand \u{...}.
Why does emoji become 4 bytes?
Many emoji live above U+FFFF, so they need 4 UTF-8 bytes. The codepoint escape form (\u{1F680}) shows them as one logical character.
Can it decode mixed formats?
No — input must be all-hex, all-decimal, all-\xAB, or all-\u{} for unambiguous detection. Split mixed input and run each part separately.
Need just Base64?
Use our Base64 Encoder & Decoder — text or file in, Base64 out.
UTF-8 Converter is a free developer utility by Zerethon Tools. Convert text to UTF-8 hex bytes, decimal bytes, \xAB or \u{HEX} escape sequences — and back. Runs entirely in the browser — no signup, no upload.
- Category
- Developer
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
Privacy
Your data never leaves your browser unless explicitly stated. UTF-8 Converter runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
ASCII Converter
Convert characters to ASCII / Unicode codepoints in decimal, hex, binary and octal — or render a live table for any input string.
Open toolJSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Open toolSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Open toolUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.