Binary Decimal Hex Converter
Quickly switch between binary, decimal, hexadecimal, and octal for code, networking, and debugging.
Enter digital value
Use the example or paste your own binary, text, base, or address value.
Results update locally in your browser.
A focused shortcut for the most common programmer bases: binary, decimal, hexadecimal, and octal.
Representation workspace
Cross-check formats before copying the result into code, notes, or network docs.
What this means
CalcShelf reads the input as base 2 and rewrites the same integer in base 16, plus signed/unsigned interpretation at 8 bits. The programmer copy table labels prefixes, padding, and signed-width meaning so the same number is not pasted into code or config with the wrong radix.
Copy output
Copy the converted formats without saving anything server-side. Use individual buttons when a destination expects one exact format.
| Representation | Value | Use case |
|---|---|---|
| Base 16 | D6 | primary converted output |
| Binary | 11010110 | bits, flags, low-level formats |
| Decimal | 214 | human-readable numeric form |
| Octal | 326 | primary converted output |
| Hexadecimal | D6 | colors, memory, addresses |
- Value
- D6
- Use case
- primary converted output
- Value
- 11010110
- Use case
- bits, flags, low-level formats
- Value
- 214
- Use case
- human-readable numeric form
- Value
- 326
- Use case
- primary converted output
- Value
- D6
- Use case
- colors, memory, addresses
Signed / unsigned bit interpretation
| Bit width | Unsigned | Signed two’s complement | Grouped binary | Hex | Sign bit |
|---|---|---|---|---|---|
| 8 | 214 | -42 | 1101 0110 | 0xD6 | Set |
| Two’s complement step | Sign bit is set, so two’s complement reads this as -42. | 0010 1001 + 1 = 42 | Invert bits, then add 1 for negative values. | 0xD6 | 1 |
- Unsigned
- 214
- Signed two’s complement
- -42
- Grouped binary
- 1101 0110
- Hex
- 0xD6
- Sign bit
- Set
- Unsigned
- Sign bit is set, so two’s complement reads this as -42.
- Signed two’s complement
- 0010 1001 + 1 = 42
- Grouped binary
- Invert bits, then add 1 for negative values.
- Hex
- 0xD6
- Sign bit
- 1
Copy-safe programmer formats
| Format | Value | Best for | Watch for |
|---|---|---|---|
| Plain decimal | 214 | spreadsheets, tickets, and docs where radix is obvious | Easy to misread when mixed with binary or hex in code/config. |
| 0b-prefixed binary | 0b11010110 | code and notes where binary bit positions matter | Prefix support varies; some systems want bare bits only. |
| 0o-prefixed octal | 0o326 | file modes and legacy radix examples | Octal is uncommon; label it clearly to avoid decimal confusion. |
| 0x-prefixed hex | 0xD6 | memory, colors, protocol fields, and compact bit notation | Hex is compact but hides individual bit boundaries. |
| 8-bit binary | 0b11010110 | fixed-width registers, masks, bytes, and protocol fields | Only valid for the selected width; widen it before copying larger values. |
| 8-bit grouped bits | 1101 0110 | human review of nibbles or bytes before copying | Remove spaces if the destination only accepts continuous bits. |
| 8-bit signed value | -42 | two’s-complement signed integer checks | Signed meaning changes when the bit width changes. |
- Value
- 214
- Best for
- spreadsheets, tickets, and docs where radix is obvious
- Watch for
- Easy to misread when mixed with binary or hex in code/config.
- Value
- 0b11010110
- Best for
- code and notes where binary bit positions matter
- Watch for
- Prefix support varies; some systems want bare bits only.
- Value
- 0o326
- Best for
- file modes and legacy radix examples
- Watch for
- Octal is uncommon; label it clearly to avoid decimal confusion.
- Value
- 0xD6
- Best for
- memory, colors, protocol fields, and compact bit notation
- Watch for
- Hex is compact but hides individual bit boundaries.
- Value
- 0b11010110
- Best for
- fixed-width registers, masks, bytes, and protocol fields
- Watch for
- Only valid for the selected width; widen it before copying larger values.
- Value
- 1101 0110
- Best for
- human review of nibbles or bytes before copying
- Watch for
- Remove spaces if the destination only accepts continuous bits.
- Value
- -42
- Best for
- two’s-complement signed integer checks
- Watch for
- Signed meaning changes when the bit width changes.
Watch-outs
- Encoding details matter: ASCII, Unicode code points, UTF-8 bytes, and binary text are related but not always identical.
- Large values can be long in binary; copy carefully if using the result in code or network documentation.
- These are utility conversions, not cryptography, validation, or forensic tooling.
Notes
These are utility conversions for valid input formats. Text encoding can be nuanced: ASCII, Unicode code points, and UTF-8 bytes are not always the same thing.
Get a better answer from the Binary Decimal Hex Converter
- Start with the example values to see how the tool behaves.
- Swap in your own numbers, even if they are rough first-pass estimates.
- Change one input at a time so you can see what actually moves the result.
What the result means
The result shows the same data in a different digital format, such as binary, hex, text, bytes, or code points.
How to use it
Use the detail rows to see how the value is broken apart. That makes it easier to spot padding, byte, encoding, or formatting issues before pasting into code.
What can change it
Computers can treat the same-looking value differently depending on encoding, signedness, byte order, separators, and escape format.
Good for
Convert binary to hex or decimal.
Check next
Compare your result with Number Base Converter, Binary to Text Converter, IPv4 Address Converter when you want more context.
Best habit
Run a conservative case and an optimistic case. The gap between them is often more useful than a single answer.
Common uses
- Convert binary to hex or decimal.
- Convert decimal numbers to binary.
- Check octal, hex, and binary values quickly.
Common questions
Is the Binary Decimal Hex Converter private?
Yes. CalcShelf calculators run without an account, do not save calculator entries, and do not put raw inputs into shareable URLs or analytics events.
How accurate is the Binary Decimal Hex Converter?
It uses common data-format rules. Encoding, byte order, separators, signedness, and escape requirements can change how a receiving system reads the same value.
What should I check after using the Binary Decimal Hex Converter?
Verify the expected encoding, byte boundaries, separators, escape format, and destination-system requirements before pasting into code or config.
Which calculator should I try next?
Use the related calculators below to cross-check the same decision from another angle before you act.
Method behind the estimate
Digital tools use standard base, byte, ASCII, Unicode, UTF-8, IPv4, and representation rules to convert values in the browser.
Why the detail matters
Encoding and formatting context matters. Verify byte order, padding, signedness, character encoding, and destination syntax before copying into code or docs.
Privacy guardrail
Your calculator values are for you. CalcShelf does not require an account, save calculator entries, put your numbers into shareable URLs, or use raw inputs as analytics events.
Copy or print safely
Use any copy, print, or worksheet controls as local handoff tools for your own notes, supplier calls, lender questions, or implementation checklist. They are there to help you explain the result to a human.
Before acting
Treat the result as a decision draft, not a verdict. Recheck the source numbers, run a downside case, and verify the real-world rule, quote, label, or spec that controls the final answer.
Last reviewed: May 11, 2026. See methodology and editorial policy for formulas, assumptions, rounding, review approach, and limitations. For code, data migration, security, or production systems, confirm the expected encoding and destination format.