EZ
EZ2Conv

Binary/Hex Converter

Convert data between text, binary, hexadecimal, decimal, octal, and Base64, with automatic input-format detection and all six representations shown at once. Customize the separator, hex case, and 0x/0b prefixes, then copy any single result or export everything as JSON.

Enter text or data to see all conversions

How to Use

  1. Enter text, binary, hex, decimal, octal, or Base64 in the input field
  2. The format is automatically detected, or select manually
  3. Adjust separator, hex case, and prefix options as needed
  4. View all converted formats instantly
  5. Click copy button to copy individual result
  6. Use Copy All for JSON format output

Understanding Binary, Hex, and Other Number Systems

What this converter does

Computers store every character and number as bits, but people read those bits in several different notations depending on the task. This tool takes text or a number and shows it at once as text, binary, hexadecimal, decimal, octal, and Base64, so you can move between the notation a debugger prints, the one a color value uses, and the one a person can actually read. Paste your input and it detects which format you gave it — or you pick the input format yourself — and fills in the other five.

When to use it

Hex and binary come up constantly in low-level work: reading a memory dump, checking a byte in a network packet, decoding a color like #41 in an RGB channel, or working out what an ASCII code stands for. Decimal and octal are handy when you are matching values against documentation or Unix file permissions, and Base64 appears whenever binary data has to travel through a text-only channel such as an email header or a data URI. Having all six side by side saves the mental arithmetic of converting one pair at a time.

Example: the letter A

Take a single character, the capital letter A. Its ASCII code is 65 in decimal, which is 0x41 in hex, 01000001 in binary, and 101 in octal. Type A into the tool and every one of those appears together; type 0x41 or 01000001 instead and you get the letter A back. This is the difference between the character and its numeric code — 'A' is the glyph, while 65 is the value the machine actually stores for it.

Notes and options

A byte is eight bits, so binary output is grouped into 8-bit chunks and hex into pairs of digits, which keeps long values readable. You can choose the separator between groups — space, comma, newline, or none — switch hex between uppercase (FF) and lowercase (ff), and turn the 0x and 0b prefixes on or off to match your target syntax. When you feed in a number rather than text, it is treated as a numeric value across bases; when you feed in text, each character is encoded by its code point. Copy any single field, or use Copy All to export every representation as one JSON object.

Frequently Asked Questions

Yes. Convert text to binary, hex, decimal, octal, and Base64 as many times as you like at no cost. The separator, hex-case, and 0x/0b prefix options are all included, with no usage limits, paid tier, or account.
Yes. Every base conversion is computed locally in your browser with JavaScript, so whatever text or number you enter is never uploaded to a server. Nothing leaves your device, which matters when the data you are decoding is a token or part of a packet capture.
No sign-up or login is required. Type or paste your value, let the tool auto-detect the format, and all six representations appear instantly — no email or registration.
They are the same number written in different bases: binary is base-2 (digits 0-1), octal base-8 (0-7), decimal base-10 (0-9), and hexadecimal base-16 (0-9 then A-F). Hex is popular because one hex digit maps exactly to four binary bits, so 0xFF is a compact way to write 11111111. This tool shows all four at once for any value you enter.
Text is encoded character by character using each character's code point, so the letter A becomes its ASCII code 65 (0x41, 01000001). A number like 65 is instead treated as a numeric value and converted straight across the bases. That is why 'A' and 65 can share the same binary result but come from different input types.
Yes. Paste a hex sequence like 0x41 or a binary string like 01000001 and set the input format (or let auto-detect handle it), and the Text field shows the character it represents. The conversion runs both ways, so decoding a hex color channel or an ASCII code is as easy as encoding one.