Number Base Converter
Convert numbers between binary, octal, decimal, hex and base32.
Type a number in any base (2, 8, 10, 16, 32) and instantly see its representation in all other bases. Input is validated against the source base so you can't accidentally enter invalid digits. Useful for low-level debugging and bit-twiddling.
Common use cases
- Convert hex colour values to decimal RGB components
- Translate file permission bits between octal (chmod) and binary
- Inspect bitmasks while debugging embedded firmware
- Convert decimal IPs to binary for subnet planning
Frequently asked questions
Does it handle very large numbers?▾
Yes for decimal input we use BigInt, so numbers larger than 2^53 are exact. For non-decimal input we use parseInt which is limited to 32-bit values.
Why is base 32 included?▾
Base 32 is used for short, case-insensitive identifiers (Crockford base32 is similar). It's not as common as base 64 but useful when you need a denser representation than hex.
Are negative numbers supported?▾
For decimal input only. Two's-complement representations across bases would be ambiguous without specifying a width.
Related tools
{}
JSON Formatter & Validator
Beautify, validate and minify JSON instantly in your browser.
↔
JSON ↔ CSV Converter
Convert JSON arrays to CSV and CSV back to JSON.
B64
Base64 Encoder & Decoder
Encode and decode Base64 strings, including UTF-8 and binary.
%
URL Encoder & Decoder
Percent-encode and decode URL components safely.