Utilo

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, with arbitrary precision.

What this number base converter does

Computers store everything in binary, but developers read and write numbers in decimal, hexadecimal and occasionally octal. This converter translates between binary, octal, decimal, hexadecimal, base 32 and base 36 simultaneously. It uses arbitrary-precision BigInt arithmetic, so 64-bit IDs, 128-bit hashes and larger numbers convert exactly without rounding.

How to use it

  1. Type a number into any field, for example 255 in Decimal or ff in Hexadecimal.
  2. All other bases update immediately.
  3. Underscores and spaces are ignored, so 1111_0000 is accepted.
  4. Invalid digits for a base mark the field in red.

Practical examples

  • File permissions: octal 755 is binary 111 101 101: read-write-execute for the owner and read-execute for group and others.
  • Colour channels: hex C8 is decimal 200.
  • Bit flags: decimal 10 is binary 1010, so flags 2 and 8 are set.
  • Short IDs: base 36 turns a large numeric ID like 2147483647 into the compact zik0zj for URLs.
  • Network masks: the subnet mask 255.255.255.0 is 11111111.11111111.11111111.00000000 in binary, which is why it is written as /24.
  • Unicode code points: the emoji 😀 is U+1F600, decimal 128512; converting helps when a system expects HTML entities like 😀.
  • Debugging hashes: a 128-bit hex value from a database converts to decimal exactly, which ordinary floating-point calculators cannot do.

Tips and edge cases

  • Negative numbers are shown with a minus sign, not in two's complement.
  • Input is case-insensitive; output uses lowercase letters.
  • Base 32 here uses digits 0–9 and letters a–v, which differs from the RFC 4648 Base32 used for encoding data.
  • Leading zeros are not preserved in other bases.
  • Fractions are not supported; enter whole numbers only.

Frequently asked questions

How do I convert hexadecimal to decimal manually?

Multiply each digit by 16 raised to its position from the right and add them up. For 1F: 1 × 16 + 15 = 31.

Why do programmers use hexadecimal?

One hex digit represents exactly four bits, so a byte is always two hex digits. That makes memory addresses, colours and binary data compact and easy to read.

Is there a size limit?

No practical limit. BigInt arithmetic handles numbers with hundreds of digits exactly.

What is base 36 used for?

It is the largest base that uses only digits and Latin letters, which makes it popular for short, case-insensitive identifiers.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.