Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Text to Hex Converter

  • Free
  • Runs in your browser
  • No account needed

This tool converts text to hexadecimal UTF-8 bytes in your browser. For example, 'A' becomes 41 and 'é' becomes C3 A9. The conversion runs locally and nothing you type is uploaded.

Text to Hex Converter runs in your browser. Your text is never uploaded or stored.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Text to Hex Converter

This Text to Hex Converter turns the characters you type into hexadecimal byte sequences using UTF-8 encoding. You can pick four output formats: Hex (bytes separated), Hex (no spaces), 0x prefixed, or \x escaped. It runs entirely in your browser, so nothing you type is sent to a server or stored online. You can copy the result with one click and the tool continues to work offline after the page has loaded. People use it for debugging, preparing byte sequences for code, checking how non ASCII characters encode, or creating hex literals for scripts. The output shows the UTF-8 bytes for each character, so accented letters and emoji become multi-byte hex sequences per the UTF-8 rules.

How to use it

  1. 1Paste or type your text into the input box.
  2. 2Select an output format: bytes separated, no spaces, 0x prefixed or \x escaped.
  3. 3Click Convert or let the real-time update show the hex output.
  4. 4Click Copy to place the hex result on your clipboard.
Advertisement

Worked example

Input: Helloé Hex (bytes separated): 48 65 6C 6C 6F C3 A9 Hex (no spaces): 48656C6C6FC3A9 0x prefixed: 0x48 0x65 0x6C 0x6C 0x6F 0xC3 0xA9 \x escaped: \x48\x65\x6C\x6C\x6F\xC3\xA9

How it works

Map each Unicode character to its code point, encode code points to a UTF-8 byte sequence per RFC 3629, then write each byte as two hex digits (00 to FF)Optionally separate bytes or add 0x or \x prefixes

Source: RFC 3629, UTF-8 StandardUnicode Consortium. Last checked 7 November 2026.

What it is good for

  • Runs entirely in your browser; no upload of your text.
  • Four output formats for code, scripts, and debugging.
  • One-click copy and works offline after the page loads.
  • Outputs UTF-8 byte sequences only; it does not offer Latin-1 or UTF-16 output.
  • It does not accept file uploads; you must paste or type text into the page.
Advertisement

Questions people ask

Which encoding does this converter use?

The tool encodes text to UTF-8 bytes before converting those bytes to hex. That means ASCII characters use one byte and many accented characters or emoji become two to four bytes.

Why does é become two hex bytes?

In UTF-8, code points above U+007F use multiple bytes. The letter é (U+00E9) encodes as the two bytes C3 A9, so you see two hex byte values.

What do the output format options do?

Hex (bytes separated) shows each byte as two hex digits with spaces. Hex (no spaces) joins bytes with no separators. 0x prefixed adds 0x before each byte. \x escaped produces \xHH sequences used in many programming languages.

Is my text uploaded to a server?

No. The conversion runs in your browser using client-side code. Nothing you type is uploaded to our servers.

Can I convert hex back to text with this tool?

This page focuses on text to hex. To convert hex to text you must parse the hex into bytes and decode the bytes as UTF-8. Use a hex-to-text tool that explicitly decodes UTF-8 bytes.

How do emoji appear in the hex output?

Emoji are Unicode code points that UTF-8 encodes as three or four bytes. For example, U+1F600 (grinning face) becomes F0 9F 98 80 in UTF-8, so you will see four hex byte values.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement