Search DevFox

Search tools and pages.

All Number Base Converter

Detect a number in decimal, binary, octal, or hexadecimal form and output every other base side-by-side in one click.

Loading tool...

What is All Number Base Converter

Written by Giorgos Kostas. Last reviewed:

All Number Base Converter accepts a number prefixed with 0x (hex), 0b (binary), 0o (octal), or no prefix (decimal) and returns all four bases side-by-side in one output panel.

It saves you from juggling three separate converters during debugging, CTF challenges, firmware reverse-engineering, or low-level protocol work where values commonly hop between bases.

Why use it

  • Compare a value across bases without running four conversions.
  • Debug bitmasks quickly during CTF challenges.
  • Teach students the relationships between bases.
  • Cross-check manuals that list the same register in different bases.
  • Speed up reverse-engineering sessions where IPs, opcodes, or flags vary by base.

Features

  • Auto-detects base via 0x/0b/0o prefixes
  • Four-base side-by-side output
  • Ideal for debugging and CTFs
  • Instant, client-side conversion
  • Copy-ready labelled output

How to use All Number Base Converter

  1. Paste your number. Enter a number with a prefix (0x/0b/0o) or plain decimal.
  2. Read all bases. The tool returns binary, octal, decimal, and hex side-by-side.
  3. Copy the block. Use the copy button to paste the labelled output into your notes.

Example (before/after)

Input (0x prefix hex)

0xC0A80001

All bases

Decimal: 3232235521
Binary:  11000000101010000000000000000001
Octal:   30052000001
Hex:     C0A80001

Common errors

Ambiguous input

A string like '1001' is valid in multiple bases.

Fix: Prefix hex with 0x, binary with 0b, octal with 0o, or use plain decimal digits.

Values beyond safe integer range

JavaScript loses precision above 2^53 - 1.

Fix: Use a BigInt-aware tool for very large values.

Negative numbers

Negative numbers are supported in decimal only.

Fix: Convert to two's complement manually for binary/hex representations.

FAQ

Which prefixes are accepted?

0x (hex), 0b (binary), 0o (octal). Plain decimal digits are also accepted.

Does it support negative numbers?

Yes for decimal. For other bases convert using two's complement manually.

What's the max value?

Up to 2^53 - 1 due to JavaScript number precision.

Is it done in-browser?

Yes. The tool runs entirely client-side.

Does the output include labels?

Yes — each line starts with the base name for easy copy-paste.

How do I convert individually?

Use the dedicated tools (decimal-to-hex, hex-to-binary, etc.) for one-way conversions.