ConvertText.app LogoConvertText.app

Hex Converter

Convert text to hex, decode hex to text, translate ASCII to hex, and convert hex back into readable text directly in your browser. This online hex converter works as a text to hex converter, hex to text converter, ASCII to hex tool, hex decoder, hex encoder, and UTF-8 hex decoder.

Paste text or hexadecimal input, choose the conversion direction, and copy or download the result instantly. The converter supports UTF-8 text, ASCII-style byte conversion, emoji, accented characters, spaced hex bytes, continuous hex strings, 0x-prefixed values, and \x-prefixed bytes.

Convert text to hexadecimal

Decode hex back to readable text

Output Format
ASCII characters encode as a single UTF-8 byte; accented letters and emoji use multi-byte UTF-8 sequences.

Add a space between each hex byte

Use A-F instead of a-f

Text Input
Enter the text you want to convert to hex
0 chars
0 bytes
Hex Output
Hexadecimal representation of your text
0 chars
0 bytes
Try Sample Inputs
Click a sample to load it into the input field.

What is a hex converter?

A hex converter changes text or bytes into hexadecimal and can decode hexadecimal back into readable text. It is the same idea developers use when reading raw bytes in a hex editor, debugger, or network packet — only with a friendlier interface.

This tool works as a text to hex converter, a hex to text converter, and a hex decoder for everyday strings. Paste a sentence on the left to convert text to hex, or paste a hex string on the right to translate hex to text without writing any code.

Because every byte maps to exactly two hexadecimal digits, hex is a compact way to inspect or share binary data. That makes the converter useful for programming, debugging, learning encoding, and any time you need to move readable text and raw bytes back and forth.

Text to hex conversion

When you convert text to hex, the tool first encodes your characters as UTF-8 bytes, then converts each byte to a two-character hexadecimal value. Plain English letters, digits, and common punctuation use a single byte each, so each character becomes exactly two hex digits.

Examples of text to hex conversion:

  • Hello → 48 65 6c 6c 6f
  • Hi 1! → 48 69 20 31 21
  • ABC → 41 42 43

Use the format options above the output field to control the result. Turn spaces off for a continuous hex string, switch to uppercase, or add a 0x or \x prefix per byte. This makes the page work as a string to hex converter, an online text to hex converter, and a quick way to convert text to hex code for source files, assignments, or debugging.

Hex to text decoding

The hex to text side accepts the most common ways people paste hex. You can drop in a continuous hex string, hex bytes separated by spaces, 0x-prefixed bytes from a debugger, or \x-prefixed bytes from a string literal — the converter normalizes the input before decoding.

Each pair of hex digits becomes one byte, and the resulting bytes are decoded as UTF-8 so accented characters and emoji come back correctly. If the input is invalid (non-hex characters, an odd number of hex digits, or a malformed UTF-8 sequence) the tool shows a clear inline error instead of returning broken text.

Use this to decode hex to text, translate hex to text, convert a hex string to text, or convert hex bytes to text — for example when reviewing log output, raw protocol dumps, or hex literals embedded in code.

ASCII to hex and hex to ASCII

ASCII is a 7-bit character encoding for basic English letters, digits, and punctuation. UTF-8 is a superset of ASCII: every ASCII character is encoded the same way in UTF-8, but UTF-8 can also represent characters from any other language, plus emoji and symbols.

Because ASCII characters round-trip identically through UTF-8, this hex converter doubles as an ASCII to hex tool and a hex to ASCII text converter. Paste plain English text to convert ASCII to hex, or paste a hex string of single-byte values to decode hex to ASCII.

Examples:

  • ASCII to hex: A → 41, Hello → 48 65 6c 6c 6f
  • Hex to ASCII: 48 69 → Hi, 41 42 43 → ABC

If you need an ASCII to hex text converter for short strings, or a hex to ASCII text converter to read raw bytes from a packet capture or memory dump, paste the data into the matching side of the tool — no install or sign-up required.

UTF-8 hex decoder

Modern text is rarely pure ASCII. Names with accents, emoji, and characters from non-Latin scripts all use multi-byte UTF-8 sequences. This converter handles them by default, so it works as a full UTF-8 hex decoder, not just an ASCII tool.

When you convert text to hex, accented characters use 2 bytes, most CJK characters use 3 bytes, and most emoji use 4 bytes. When you decode hex to text, the same multi-byte sequences are reassembled and validated.

Examples:

  • café → 63 61 66 c3 a9 (the é is two UTF-8 bytes)
  • 😀 → f0 9f 98 80 (a 4-byte UTF-8 emoji)

If the bytes do not form a valid UTF-8 string, the decoder reports a malformed UTF-8 sequence error instead of silently producing replacement characters.

Common hex formats

The hex to text mode accepts the formats you are most likely to encounter when copying hex from documentation, debuggers, or source code:

  • Continuous hex: 48656c6c6f
  • Spaced bytes: 48 65 6c 6c 6f
  • 0x-prefixed bytes: 0x48 0x65 0x6c 0x6c 0x6f
  • \x-prefixed bytes: \x48\x65\x6c\x6c\x6f

Uppercase and lowercase hex digits both work, and you can mix them freely. The text to hex side lets you choose the output style yourself: spaces on or off, uppercase or lowercase, and an optional 0x or \x prefix per byte.

Private browser-based hex conversion

All conversion runs locally in your browser. Your text and hex input never leave your device, never get uploaded to a server, and are not stored anywhere by the site. There are no API calls and no logs of your input.

That makes this online hex converter safe to use for snippets from internal logs, packet captures, or sensitive strings you would rather not paste into a remote service. Close the tab and the data is gone.

Privacy aside, working entirely client-side also means the tool is fast: every keystroke updates the output without a network round-trip.

Is this a color hex converter?

No — this page is a text and data hex converter, not a color picker. Web colors are also written in hexadecimal (for example #1e90ff), but they describe RGB values rather than text bytes.

If you want to pick or convert website colors, use a dedicated color tool. This converter is focused on encoding and decoding text, ASCII, and UTF-8 bytes as hexadecimal.

Frequently Asked Questions

What is a text to hex converter?

A text to hex converter takes ordinary text, encodes each character as one or more UTF-8 bytes, and prints those bytes as two-digit hexadecimal values. It is the same idea you see when reading raw bytes in a hex editor, just with a more readable interface that you can use directly in the browser.

How do I convert text to hex online?

Switch the tool to Text to Hex, paste your text into the input field, and the hex output appears immediately. Use the format options to add spaces, switch to uppercase, or add a 0x or \x prefix per byte. Click Copy to copy the result, or Download .txt to save it to a file.

How do I decode hex to text?

Switch the tool to Hex to Text and paste your hex input. The converter accepts continuous hex (48656c6c6f), spaced bytes (48 65 6c 6c 6f), 0x-prefixed bytes (0x48 0x65 0x6c 0x6c 0x6f), and \x-prefixed bytes (\x48\x65\x6c\x6c\x6f). It strips prefixes and whitespace, then decodes the bytes as UTF-8 so the original text is restored.

What is the difference between ASCII to hex and UTF-8 hex?

ASCII covers basic English letters, digits, and punctuation in a single byte per character. UTF-8 is a strict superset of ASCII: every ASCII character is encoded the same way, but UTF-8 can also represent accented characters, non-Latin scripts, and emoji using two, three, or four bytes per character. This tool always uses UTF-8, so it works as both an ASCII to hex converter and a UTF-8 hex decoder without any mode switch.

Can I use this as a hex to ASCII text converter?

Yes. Because ASCII is a subset of UTF-8, paste your hex into Hex to Text mode and the tool decodes it as ASCII when every byte is below 0x80. It works as a hex to ASCII text converter, an ASCII to hex text converter, and a general-purpose hex decoder for everyday strings.

Can I convert a hex string to readable text?

Yes. Paste your hex string into the Hex to Text side. The converter accepts spaced and continuous hex, plus 0x- and \x-prefixed bytes. Each pair of hex digits is treated as one byte and the result is decoded as UTF-8, so you can convert a hex string to text and recover the original characters — including accented letters and emoji.

Does this hex converter support 0x-prefixed hex?

Yes. In Hex to Text mode the tool strips every 0x and \x prefix it sees (case-insensitive) before decoding, so you can paste output from a debugger or source code without cleaning it up first. In Text to Hex mode you can choose to add a 0x or \x prefix to each byte of the output.

Can I convert emoji or accented characters to hex?

Yes. The encoder uses UTF-8, so accented characters become 2-byte sequences and most emoji become 4-byte sequences. For example, café becomes 63 61 66 c3 a9 and 😀 becomes f0 9f 98 80. Decoding the same hex restores the original characters.

Is this a color hex converter?

No. This is a text and data hex converter for encoding and decoding bytes. Web colors are also written in hex (for example #1e90ff), but they describe RGB values, not text. For picking or comparing colors, use a dedicated color tool.

Are my inputs uploaded to a server?

No. The hex converter runs entirely in your browser. Your input is never uploaded, never stored, and never sent to a third party. That makes it safe for sensitive snippets and convenient for offline-style workflows where you do not want to depend on a remote service.

Explore More Text Tools

Free online tools to convert, encode, and transform your text

Convert Case

Transform text case — uppercase, lowercase, title case & more

Morse Code Translator

Convert text to Morse code and vice versa

Morse Code Audio Decoder

Decode Morse code from audio files or microphone

Binary Translator

Convert text to binary and vice versa

Base64 Encoder/Decoder

Encode and decode Base64 text

ROT13 Encoder/Decoder

Encode and decode text using ROT13 cipher

Superscript Generator

Convert text to Unicode superscript where supported

Subscript Generator

Convert text to Unicode subscript where supported

Small Text Generator

Generate small caps, tiny superscript, and subscript text to copy and paste

Strikethrough Text Generator

Generate copy-paste Unicode strikethrough text instantly

Image to Base64 Converter

Convert images to Base64 / Data URI

URL Encoder / Decoder

Encode and decode URL components, query strings, and percent-encoded text

HTML Entity Encoder / Decoder

Encode and decode HTML entities such as &, <, >, ", and '