ASCII Hex Binary Dec Converter

Convert between ASCII text, hexadecimal, binary, decimal, and Base64 encoding. Free online number system converter with delimiter and prefix options.

ASCII, Hex, Binary, Decimal, Base64 Converter

This powerful converter allows you to seamlessly convert between different number systems and text encodings. Whether you're a developer working with low-level programming, a student learning about number systems, or anyone needing to convert between different data representations, this tool provides instant conversions with support for various formatting options.

How to convert ASCII text to Hex?

Each ASCII character has a unique decimal value (0-127 for standard ASCII, 0-255 for extended ASCII). To convert to hexadecimal, take the decimal value of each character and convert it to base-16. For example, the letter 'A' has decimal value 65, which is 41 in hexadecimal.

What is the difference between ASCII, Hex, Binary, and Decimal?

These are different ways to represent the same data:
- ASCII: Human-readable text characters
- Hexadecimal (Hex): Base-16 representation using digits 0-9 and letters A-F
- Binary: Base-2 representation using only 0 and 1
- Decimal: Base-10 representation using digits 0-9
- Base64: Encoding scheme to represent binary data in ASCII text format

For example, the letter 'A' is:
- ASCII: A
- Decimal: 65
- Hexadecimal: 41
- Binary: 01000001
- Base64: QQ== (when encoded)

What is Base64 encoding used for?

Base64 is an encoding scheme that converts binary data into ASCII text format using 64 different characters (A-Z, a-z, 0-9, +, /). It's commonly used for:
- Embedding images in HTML/CSS (data URIs)
- Encoding email attachments (MIME)
- Storing binary data in JSON or XML
- Transmitting binary data over text-based protocols

Base64 increases data size by approximately 33% but ensures safe transmission over systems that only support text.

What are delimiters and prefixes for?

Delimiters and prefixes help format and identify numbers:

Delimiters separate individual bytes/values:
- None: 48656C6C6F
- Space: 48 65 6C 6C 6F
- Comma: 48,65,6C,6C,6F

Prefixes identify the number system:
- Hexadecimal: 0x prefix (0x48)
- Binary: 0b prefix (0b01001000)

These formatting options make the data more readable and clearly indicate the number system being used, which is especially useful in programming.

Can this converter handle special characters and unicode?

This converter primarily handles standard ASCII characters (0-255). For extended characters and Unicode, the results may vary depending on character encoding (UTF-8, UTF-16, etc.). Standard ASCII characters (A-Z, a-z, 0-9, and common symbols) will convert accurately. For Unicode characters, consider using UTF-8 encoding tools for more accurate results.

ASCII Character Conversion Reference

Char Decimal Hex Binary Description
NUL 0 00 00000000 Null character
A 65 41 01000001 Uppercase A
a 97 61 01100001 Lowercase a
0 48 30 00110000 Digit zero
Space 32 20 00100000 Space character
! 33 21 00100001 Exclamation mark
@ 64 40 01000000 At sign
Z 90 5A 01011010 Uppercase Z
z 122 7A 01111010 Lowercase z
9 57 39 00111001 Digit nine