Binary Converter
100% FreeConvert integers between binary, octal, decimal, hex — BigInt-precise so values past 2^53 work without rounding. Accepts 0b/0o/0x prefixes.
Type into any base — the others update instantly. Prefixes (0b, 0o, 0x) and underscores accepted.
Embed This Tool
Easy to EmbedAdd Binary Converter to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/binary-converter/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="Binary Converter">
</iframe> Advertisement
How to Use
- 1 Type a value into any of the 4 base rows
- 2 All other bases recalculate instantly
- 3 0b / 0o / 0x prefixes accepted (Python / C style)
- 4 Underscores in numbers are ignored (e.g. 1_000_000)
Features
- 4 bases (binary, octal, decimal, hexadecimal)
- BigInt arithmetic — no precision loss past 2^53
- Negative integers supported
- Strips 0b/0o/0x prefixes and underscores
- Reports bit width
- Hex output uppercase, easy to read
Why it Matters
Embedded developers, security researchers, and curriculum designers convert between bases constantly. JavaScript's built-in `parseInt` silently drops precision past 2^53. BigInt handles 256-bit numbers and beyond — useful for crypto-style values that don't fit in a normal number.
Use Cases
Embedded / Bit Manipulation
Convert register values from hex to bin to spot bit patterns
Network / IP
Convert IP octets, MAC addresses, subnet masks
Curriculum / Learning
Demonstrate base conversion to students
Frequently Asked Questions
Why is 255 in binary 11111111 (8 ones)?
Why does this support BigInt?
What does 'bit width' mean?
Want to understand the conversions?
Related Tools You Might Like
Length Converter
Convert between mm, cm, m, km, inches, feet, yards, miles — all 8 units update live as you type into any cell.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. Client-side.
MD5 Hash Generator
Generate MD5 hashes from any text — checksums, fingerprints, and legacy compatibility. 100% client-side.
SHA-256 Hash Generator
Generate SHA-256 hashes and HMAC-SHA256 signatures — the secure standard for file integrity, JWT signing, and API request signatures.
UUID Generator
Generate cryptographically random RFC 4122 v4 UUIDs — single, bulk (up to 1000), with format options. 100% client-side.