Skip to content

Menu

ASCII to Hex

Convert ASCII text to hexadecimal

Runs entirely in your browserEncodingFree, no sign-up
Loading tool

01What is ASCII to Hex?

Hex is how most debuggers, packet sniffers and hex editors show raw bytes, and reading it by eye gets old fast. This tool turns text into hex and hex back into text, so you can check what a byte string really says. The name says ASCII, but the encoder is honest about modern text. Your input is first encoded as UTF-8 with the browser's TextEncoder, the same encoding defined in RFC 3629. Each resulting byte is then written as two uppercase hex digits. Plain ASCII letters map to one byte each, because UTF-8 keeps the ASCII range unchanged. Anything outside that range becomes its real multi-byte sequence. An accented é turns into C3 A9, and the 😀 emoji turns into four bytes, F0 9F 98 80. You pick how the bytes are joined with the Space, None, Colon or Dash buttons. So "Hi!" comes out as 48 69 21 with spaces, or 486921 with no separator at all. The Hex → ASCII direction is deliberately relaxed about formatting. It deletes every 0x prefix, then treats any character that is not a hex digit as a gap between bytes. That means 0x48,0x65 and 48-65 both parse fine. If any chunk is longer than two digits, the tool assumes you pasted one long run like 48656C6C6F and splits it into pairs. An odd digit count in that case stops with an error instead of shifting every byte by half. The decoded bytes go through TextDecoder as UTF-8, so C3 A9 comes back as é. Bytes that do not form valid UTF-8, such as a lone FF, show up as the replacement character �. A stats line under the buttons shows input length, output length and the byte count, which is handy when you need to know the real size of a string. A few limits are good to know up front. Because non-hex characters count as separators, a typo like zz between two bytes is skipped silently rather than flagged. In spaced input, a single digit such as the 6 in "48 6" is read as the byte 06. The decoder only speaks UTF-8, so Latin-1 or UTF-16 dumps will look garbled. Conversion happens in the page's own JavaScript, so the text you paste is never uploaded to our server.

Embedded and network engineers who read hex dumps from serial lines and packet captures and need to see the text inside quickly. The tool runs entirely in your browser, so your data never leaves your device.

02How to use ASCII to Hex

  1. Pick ASCII → Hex or Hex → ASCII with the buttons at the top.
  2. In ASCII → Hex mode, choose a Separator: Space, None, Colon or Dash.
  3. Type or paste into the ASCII Text or Hex String box. The output updates as you type.
  4. Read the Input, Output and Bytes counters to confirm the size you expected.
  5. Click Copy to take the result, or the reset icon to clear the input.

03Worked examples

Input: Hi! (Space separator)
Result: 48 69 21
One byte per ASCII character.
Input: café (Space separator)
Result: 63 61 66 C3 A9
é is two UTF-8 bytes, C3 A9.
Input: 😀 (Colon separator)
Result: F0:9F:98:80
An emoji outside the Basic Multilingual Plane is four UTF-8 bytes.
Input: OK + CRLF line ending (None separator)
Result: 4F4B0D0A
The carriage return and line feed show up as 0D 0A.
Input: 0x48 0x65 0x6C 0x6C 0x6F (Hex → ASCII)
Result: Hello
0x prefixes are removed before decoding.
Input: 486 (Hex → ASCII)
Result: Error: Continuous hex must have an even number of digits
A continuous string with a missing digit is rejected rather than guessed.

04Common use cases

  • Reading the payload bytes from a Wireshark or xxd dump to see which text a request actually carried
  • Writing colon-separated hex for a serial-protocol or firmware test fixture
  • Spotting a stray carriage return in a header value, since \r\n shows up plainly as 0D 0A
  • Checking how many bytes a username with accents or emoji takes before it hits a byte-limited column
  • Producing exact hex literals for unit tests in C, Go or Python
  • Decoding a 0x-prefixed byte list copied from a C array back into readable text

05Tips

  • Line endings are easy to see here. Windows text ends lines with 0D 0A, Unix text with just 0A.
  • The Bytes counter counts UTF-8 bytes, not characters, so one emoji adds 4 to it.
  • When decoding, double-check for typos yourself. Letters outside 0-9 and A-F are treated as spacing, so a mistyped byte vanishes without a warning.
  • Use the None separator and paste the result into Python's bytes.fromhex(), which accepts a continuous hex string.
  • A run of � in decoded output usually means the bytes were not UTF-8 to begin with, often Latin-1 or binary data.

06Related concepts

Hexadecimal, ASCII table, Character codes, Hex dump, Byte encoding.

Frequently Asked Questions

What is ASCII to Hex?

ASCII to Hex is a free, browser-based developer tool on AIDToolStack. Convert ASCII text to hexadecimal It requires no installation or sign-up and works entirely in your browser.

Is ASCII to Hex free to use?

Yes. No sign-up, no fees and no usage cap.

Does ASCII to Hex store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe