Binary / Hex / ASCII
Binary
Hexadecimal
Decimal
Octal

Enter a value in any field — all others update instantly.

Binary / Hex / ASCII — Convert between binary, hex, decimal, ASCII

Convert between binary, hex, decimal, ASCII. Runs in your browser.

Updated May 15, 2026
Share & Support

What's included

Features

Instant multi-format conversion — binary, hex, decimal, octal, and ASCII all update simultaneously as you type in any field
Text-to-bytes mode — convert any ASCII or UTF-8 string to its full byte-level representation in all four number formats
Byte-by-byte breakdown showing each character as decimal code point, hex byte, binary bits, and octal value
ASCII reference table — printable characters, digits, uppercase, lowercase, and common control codes organized by category
Multi-byte hex input — paste space-separated hex bytes (e.g. 48 65 6C 6C 6F) to decode multiple bytes to ASCII text at once
Copy buttons on every output field for one-click clipboard copy in any format
No submit button — results update in real time as you enter any value in any field
Runs entirely in the browser — no data is uploaded to any server
Pairs with [Number Base Converter](/number-base-converter/) for multi-base arithmetic and Hash Generator for checksums

About this tool

Convert Between Binary, Hexadecimal, Decimal, Octal, and ASCII Instantly

Working with low-level data, network protocols, memory addresses, color codes, or character encoding means constantly translating between binary, hexadecimal, decimal, and ASCII. Doing this in your head for multi-byte values is slow and error-prone. A dedicated converter handles the tedious part — enter a value in any format and all other representations update simultaneously, with no submit button and no page reload required.

This converter handles both single-value and multi-character text conversion. For individual numbers, enter a binary string, hex value, decimal number, or octal value and see all equivalent representations at once. For text strings, switch to Text mode and enter any ASCII or UTF-8 string to get the full byte-level breakdown: each character displayed as its decimal code point, hexadecimal byte, binary representation, and octal value side by side. This is essential when debugging encoding issues in file parsers, protocol implementations, or terminal output where invisible bytes cause unexpected behavior.

Common programming and networking uses. Color codes are written in hex (#FF5733) — convert to decimal RGB values (255, 87, 51) for use in code that expects integer color channels. Memory addresses are displayed in hex by debuggers and disassemblers — see the binary representation to understand which bits are set. ASCII encoding tables map printable characters to decimal codes — verify or look up any code point without memorizing the table. Network protocols use hex dumps in packet captures — paste space-separated hex bytes to decode the ASCII text they represent. Bit masks and flag values are written in binary or hex — convert to decimal to compare against integer literals in your code. The built-in ASCII reference table covers printable characters, digits, uppercase letters, lowercase letters, and common control codes — all organized by category.

Pairs well with Number Base Converter for multi-base arithmetic across bases 2 through 36, and Hash Generator for checksums and cryptographic digests.

Step by step

How to Use

  1. 1
    Enter a value in any fieldType a binary string (e.g. 01001000), hex value (e.g. 48), decimal number (e.g. 72), octal value (e.g. 110), or ASCII character (H). All other fields update instantly.
  2. 2
    Convert text stringsSwitch to Text mode and type any ASCII or UTF-8 string. The tool shows the full byte-by-byte breakdown — each character as decimal, hex, binary, and octal.
  3. 3
    Use the lookup tableBrowse the ASCII table below the converter to look up character codes by category: printable characters, digits, uppercase, lowercase, and control characters.
  4. 4
    Copy any representationClick the copy button next to any field to copy that format to the clipboard.
  5. 5
    Handle multi-byte hex stringsIn hex mode, enter a space-separated hex string like "48 65 6C 6C 6F" to decode multiple bytes to ASCII text at once.

Real-world uses

Common Use Cases

Convert hex color codes to RGB decimal
Translate CSS hex colors (#FF5733) to decimal RGB values (255, 87, 51) or binary representation for use in code that expects integer color channels.
Decode ASCII from hex dumps
Paste space-separated hex bytes from a network protocol, binary file, or memory inspector and decode the ASCII characters they represent.
Understand binary representation of characters
See the exact bit pattern for any ASCII character — useful for learning binary encoding, bitwise operations, and data formats in low-level programming.
Verify character encoding
Check the exact byte value for a character to debug encoding issues in text processing, file parsing, or protocol implementation.
Work with network protocol bytes
Translate between the hex values used in protocol documentation and the ASCII text or decimal values they represent in packet captures.
Quick base conversions for programming
Convert constants between hex, binary, and decimal without leaving the browser — useful when working with bit masks, flags, and memory offsets in systems code.

Got questions?

Frequently Asked Questions

Group the binary digits into nibbles (groups of 4) from right to left, then convert each nibble to its hex digit (0–F). This tool does that conversion automatically — enter a binary string and the hex equivalent appears instantly.

Each ASCII character has a decimal code point (e.g. A = 65). Convert that decimal to binary (65 = 01000001). This tool shows the binary, hex, decimal, and octal for any character or string.

Binary uses base 2 (digits 0–1). Hexadecimal uses base 16 (digits 0–9, A–F). One hex digit represents exactly 4 binary digits (one nibble). Two hex digits represent one byte (8 bits).

Switch to Text mode and type your string. Each character is converted to its ASCII/UTF-8 byte value, then shown as binary, hex, decimal, and octal.

A space is ASCII 32 (decimal), 20 (hex), 00100000 (binary), 40 (octal). Use the ASCII reference table in this tool to look up any printable character.

Yes. Enter space-separated hex bytes like "48 65 6C 6C 6F" in the hex field. The tool decodes each byte to its ASCII character and shows the text "Hello".