Number Base Converter
Convert between binary, octal, decimal and hexadecimal — type in any box and the others update.
- Runs in your browser — nothing uploaded
- Instant, no waiting in a queue
- Free, no watermark, no daily limits
Enter a number in binary, octal, decimal or hexadecimal and see it in every other base immediately. Common prefixes like 0x, 0b and 0o are accepted, as are spaces and underscores used as separators. Numbers are handled as arbitrary-precision integers, so values far beyond 64 bits convert exactly. A custom field converts to and from any base between 2 and 36, and the binary view is grouped in nibbles for easy reading.
How to Convert Between Number Bases
- 1
Type a number
Enter it in the box for the base you have — for example 255 in Decimal or FF in Hexadecimal.
- 2
Read the other bases
Binary, octal, decimal and hex update instantly, with the bit length shown in the Custom base panel.
- 3
Use a custom base
Set any base from 2 to 36 in the custom field, then copy the value you need.
Why use ToolzBank Number Base Converter?
- Binary, octal, decimal and hexadecimal
- Any custom base from 2 to 36
- Exact conversion of very large integers
- Negative numbers supported
- Accepts 0x, 0b, 0o prefixes and separators
- Bit length and byte count
Frequently asked questions
How do I convert binary to decimal?
How do I convert decimal to hexadecimal?
Does it work with very large numbers?
Can it convert fractions or decimals?
Is it free?
More free developer tools
JSON Formatter & Validator
Beautify, minify & validate JSON
JSON to CSV
Flatten JSON arrays into CSV/Excel
XML Formatter
Pretty-print & validate XML
JWT Decoder
Decode & verify JSON Web Tokens locally
Regex Tester
Test regular expressions live
Timestamp Converter
Unix epoch ⇄ human-readable dates
Diff Checker
Compare two texts line by line
Base64 Encoder / Decoder
Encode & decode Base64 text and files
URL Encoder / Decoder
Percent-encode, decode & parse URLs
HTML, CSS & JS Formatter
Beautify HTML, CSS & JS; minify HTML & CSS
Hash Generator
MD5, SHA-1, SHA-256 & SHA-512 for text or files
PX to REM Converter
Convert px ⇄ rem, or a whole stylesheet
Color Converter
HEX, RGB, HSL, HSV & CMYK with contrast check
YAML to JSON Converter
Convert YAML ⇄ JSON with error lines
SQL Formatter
Beautify SQL for MySQL, PostgreSQL & more
Markdown Editor
Write visually, download a .md file
From Our Blog
How to Convert Binary, Decimal and Hexadecimal (With Examples)
How number bases work, step-by-step binary and hex conversions with worked examples, and a converter that handles any base from 2 to 36.
How to Convert Currency Online Using Live Exchange Rates
Bank and card exchange rates rarely match what you see online. Here is how to check the real mid-market rate before you travel, shop abroad, or send money.
How to Convert Bitcoin and Other Crypto Prices to USD
Crypto prices move by the minute. Here is a quick, reliable way to check what your Bitcoin, Ethereum or other holdings are worth in US Dollars right now.
