Text Encoding Converter

Convert text to and from hex, binary, octal, decimal, Unicode code points, UTF-16, percent-encoding, punycode, HTML entities, JS escapes, Base32 and QP.

Converter

Was this tool useful?

About this tool

About Text Encoding Converter

One place for all the ways text is written as bytes and codes. Type text to see it in every format at once – UTF-8 hex, binary, octal and decimal bytes, Unicode code points, UTF-16 units, URL percent-encoding, punycode for international domain names, HTML numeric entities, JavaScript/JSON escapes, Base32 and e-mail quoted-printable – or paste encoded data and turn it back into text. Urdu, Arabic and emoji are handled correctly.

How it works

Text is first turned into UTF-8 bytes (or UTF-16 units / code points) and then written in the chosen notation. Decoding checks that the bytes are valid UTF-8.

Example

“Hi” → hex 48 69 → binary 01001000 01101001 → Base32 JBUQ====.

How to use this tool

  1. Choose the direction and the format.
  2. Type text or paste encoded data.
  3. Copy the result, or swap to convert back.

Frequently asked questions

Where is Base64?

Base64 has its own tool – Base64 Encode / Decode.

What is punycode?

The ASCII form of domain names with non-English letters, such as xn--mgbh0fb.xn--kgbechtv for an Arabic domain.

Is my data uploaded?

No. Everything is processed in your browser and stays on your device.

Is my text stored when I use the Text Encoding Converter?

No. The Text Encoding Converter processes your text in your browser. Nothing you type or paste is sent to our server, so it is safe for drafts and private notes.