Text to Hex Converter

Free online text to hex converter that translates any text into hexadecimal codes (base 16) and back. Choose uppercase or lowercase hex, add an optional 0x prefix, pick any separator, and the tool does the rest. Full UTF-8 support — accented letters, non-Latin scripts and emojis all work correctly. No signup, runs entirely in your browser.

Input

Type or paste — output updates live
Tip: Press Ctrl+Enter (or Cmd+Enter) to convert instantly. When decoding hex back to text, the tool ignores any 0x prefix, \x escapes, and separators — it only reads the hex digits.

Output

Ready when you are

Your hex output will appear here

Start typing in the input box or click Example to see how it works.

What does this Text to Hex Converter do?

This free online text to hex converter translates any text into hexadecimal codes — numbers in base 16 that use the digits 0-9 and letters A-F. Every character you type has a numeric value called a code point, and this tool shows you exactly what that value looks like in hex. For example, the letter A has code point 65, which is 41 in hex.

The tool works in both directions. Type or paste text into the input box and the hex output appears immediately, live, as you type. Switch to the Hex → Text tab to go the other way — paste a hex string and the tool decodes it back to readable text, ignoring any 0x, \x, or other separators along the way.

Everything runs locally in your browser. Whatever you type never leaves your device, there is no signup, and there are no usage limits. Convert as much text or hex as you want, as many times as you want.

How to convert text to hex

  1. Enter your text. Type or paste anything into the input box — a word, a sentence, a password, or a whole paragraph.
  2. Choose your options. Pick uppercase or lowercase hex, choose a separator (space, comma, colon, new line, or none), and optionally add a 0x prefix to each byte.
  3. Watch the hex output. It updates as you type — no button press needed. Every character is encoded using UTF-8 and then shown as hex bytes.
  4. Copy or download. Use the Copy Output button to grab the hex, or Download to save it as a text file.
  5. Need to reverse it? Click the Hex → Text tab, paste your hex, and it decodes back to text automatically.

Why use this Text to Hex Converter?

Live conversion

Output appears the instant you type. No button press needed — everything runs in your browser.

Flexible formatting

Uppercase or lowercase hex. Space, comma, colon, new line, or no separator. Optional 0x prefix on every byte.

Two-way conversion

Convert text to hex or hex back to text with a single click. Same tool, both directions.

Full UTF-8 support

Accented letters, Arabic, Chinese, Hindi, Cyrillic and emojis all convert correctly.

100% private

Everything runs locally. Your text never leaves your device — no server, no logs, no tracking.

Works offline

Once the page loads, you can convert text and hex without an internet connection.

ASCII character reference in hex

Here are a few common characters and what they look like in hexadecimal. The tool handles all 128 ASCII characters plus the full Unicode range (via UTF-8 encoding).

CharacterDecimalHexBinary (8-bit)
A654101000001
B664201000010
H724801001000
a976101100001
z1227A01111010
0483000110000
9573900111001
Space322000100000
!332100100001
Newline \n100A00001010

So "Hello" in hex is 48 65 6C 6C 6F, and "Hi!" is 48 69 21. The tool produces exactly this output when you select uppercase hex with space separators.

Uppercase vs. lowercase hex — which should you pick?

There is no functional difference between 0x41 and 0x41 regardless of case — A and a represent the same value 10. The choice is purely cosmetic and depends on the conventions of where you're pasting the output.

CaseExampleCommon in
Uppercase48 65 6C 6C 6FDocumentation, security tools, network captures, color codes (#FF0000)
Lowercase48 65 6c 6c 6fModern programming languages, shell scripts, CSS values in lowercase, URLs

For general use, uppercase is more common in documentation and security tools. If you're pasting hex into code, lowercase is often the more idiomatic choice. Both are handled identically when you decode them back to text.

Common uses for text to hex conversion

Learning how computers store text

Every character on screen is really a number, and hex is one of the most compact ways to write that number. Converting text to hex makes the connection between characters and bytes much clearer — the letter "A" really is 65, and 65 in hex is 41.

Debugging encoding issues

When a file shows up with garbled characters (mojibake) or a database stores strings incorrectly, looking at the raw hex often reveals the problem. UTF-8, Latin-1 and Windows-1252 all store some characters differently, and hex is the fastest way to spot the difference.

Web development and CSS

Colour codes in CSS are written in hex (#FF0000 for red, #00FF00 for green). Working with hex regularly makes colour manipulation intuitive, and this tool helps translate between mental models.

Security and penetration testing

Hex is the lingua franca of security work — packets, memory dumps, shellcode, and exploit payloads are all typically shown in hex. Being able to quickly convert between text and hex is a useful skill.

Teaching and coursework

Computer science courses frequently ask students to convert text to hex by hand. This tool makes it easy to check your work and see patterns in real time.

Frequently asked questions

Text to hex conversion means translating each character in your text into its hexadecimal equivalent — a base-16 number using digits 0-9 and letters A-F. Every character has a numeric code (its Unicode code point), and that number is expressed in base 16. For example, the letter A is 65 in decimal, which is 41 in hex.
Yes, completely free. No signup, no watermark, no hidden charges. Convert as much text as you want for personal, educational or commercial use.
Yes. The tool uses UTF-8 encoding by default, so it correctly handles accented letters, non-Latin scripts (Arabic, Chinese, Hindi, Cyrillic) and emojis. Each Unicode code point is encoded using as many bytes as it needs, then each byte is written in hex.
There is no functional difference — 0x41 and 0x41 mean the same value whether the letters are uppercase (ABC…) or lowercase (abc…). Uppercase is more common in documentation; lowercase is more common in modern programming languages. The tool lets you choose either.
You can choose from space, no separator, comma, newline, colon, or a custom string. Space is the default and easiest to read. No separator gives the most compact output.
Yes. Enable the 0x prefix option and every byte gets prefixed with 0x, which is the standard notation in most programming languages and security tools.
Yes. Switch to the Hex to Text tab, paste your hex string, and click Decode. The tool ignores any prefix like 0x or \x and any non-hex characters, then groups the remaining digits into bytes.
No. Everything runs locally in your browser using JavaScript. The text you enter never leaves your device — no server processing, no logging, no data storage.
Yes. Once the page loads, the text to hex converter works without an internet connection.
Yes. The tool is fully responsive and works on phones, tablets, laptops and desktops.