ASCII to Hex Converter

Convert any text to its hexadecimal representation instantly. Multiple output formats, UTF-8 support, all in your browser.
Client-Side Only No Rate Limits No Signup Required
0 characters · 0 bytes
0 hex bytes
Try:

Character Breakdown

Enter text above to see the per-character breakdown.

How ASCII to Hex Conversion Works

Every character in a text string has a numeric value in the ASCII (or UTF-8) encoding table. This tool converts each character to its hexadecimal byte representation.

For standard ASCII characters (0–127), each character maps to exactly one byte (two hex digits). For example, the letter "A" is decimal 65, which is 41 in hex.

For Unicode characters beyond ASCII, UTF-8 encoding uses 2–4 bytes per character. The tool handles this automatically — a character like "é" becomes C3 A9 (two bytes).

Common Use Cases

  • Encoding data for network protocols
  • Preparing hex payloads for APIs
  • Debugging character encoding issues
  • Working with binary file formats
  • Generating hex escape sequences

Quick Reference

  • A-Z: 41–5A
  • a-z: 61–7A
  • 0-9: 30–39
  • Space: 20
  • Newline: 0A

Frequently Asked Questions

How do I convert ASCII text to hexadecimal?
Type or paste your text into the input field above. Each character is instantly converted to its hex value. For example, "Hello" becomes "48 65 6C 6C 6F". The conversion happens entirely in your browser — no data is sent to any server.
What is the hex value of the letter A?
The uppercase letter "A" has ASCII value 65 in decimal, which is 41 in hexadecimal. Lowercase "a" is 97 decimal / 61 hex. The full alphabet runs from 41-5A (uppercase) and 61-7A (lowercase).
What hex format options are available?
You can output hex as space-separated (48 65 6C), continuous (48656C), colon-separated (48:65:6C), or 0x-prefixed (0x48 0x65 0x6C). Choose uppercase or lowercase hex digits. All formats are interchangeable.
Can I convert non-English characters to hex?
Yes. Our tool supports full UTF-8 encoding. Non-ASCII characters like é, ñ, 你好, or emoji are converted to their multi-byte UTF-8 hex representation. For example, "é" becomes "C3 A9" (two bytes in UTF-8).
How do I convert ASCII to hex in Python?
Use: "Hello".encode("utf-8").hex() which returns "48656c6c6f". For space-separated output: " ".join(f"{b:02x}" for b in "Hello".encode("utf-8")). For 0x-prefixed: " ".join(f"0x{b:02x}" for b in "Hello".encode("utf-8")).
What is the difference between ASCII and UTF-8 hex encoding?
For characters 0-127 (standard ASCII), the hex values are identical. The difference appears with characters above 127: ASCII cannot represent them, while UTF-8 uses 2-4 bytes. Our tool uses UTF-8 by default, which is backward-compatible with ASCII.