Z

UTF-8 Converter

Convert text to UTF-8 hex bytes, decimal bytes, \xAB or \u{HEX} escape sequences — and back.

Free No signup Client-side Privacy friendly

How to use

  1. 1 Pick Text → Bytes (encode) or Bytes → Text (decode).
  2. 2 Choose output format on encode — hex, decimal, \xAB, or \u{HEX}.
  3. 3 Paste input. Decode auto-detects which format you used.
  4. 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.

Summary

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

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Try Zerethon free