Number Base Converter
Enter a number in one base to see it in binary, octal, decimal, hexadecimal, base 32 and base 36 at once. Arbitrarily large integers are converted exactly.
Output
🔒 Runs in your browser. Your data is never uploaded.
How to use
- Choose the base of the number you have.
- Type the number. Prefixes such as 0x and 0b, spaces and underscores are accepted.
- Copy the representation you need.
Why hex maps neatly onto binary
One hexadecimal digit is exactly four bits and one octal digit is exactly three, so a byte is always two hex digits. That is why memory dumps, colors and hashes are written in hex.
No rounding on big numbers
Ordinary JavaScript numbers are exact only up to 2^53. This tool uses arbitrary-precision integers, so 128-bit values such as UUIDs or IPv6 addresses convert without losing digits.
Frequently asked questions
- How are negative numbers shown?
- With a minus sign in every base, for example -101 in binary for -5. Two's-complement form depends on a chosen bit width and is not produced.
- Can it convert fractions?
- No. Only whole numbers are supported; a decimal point is reported as an error.
- What digits does base 36 use?
- The digits 0–9 followed by the letters a–z, which makes it the most compact case-insensitive alphanumeric form.
Related tools
- Hash Generator (SHA-256, SHA-512, SHA-1)Generate SHA-256, SHA-512, SHA-384 or SHA-1 hashes of text in your browser using the Web Crypto API.
- Color ConverterConvert colors between HEX, RGB, HSL and HSV with a live preview.
- Unix Timestamp ConverterConvert Unix timestamps (seconds, milliseconds, microseconds) to human-readable dates and dates back to epoch time, in UTC and your local time zone.
- Base64 Encode / DecodeEncode text to Base64 or decode Base64 back to text.