💻 Developer Tools

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal. Edit any one field and the others update on the spot. Any base from 2 to 36 works too, and big integers are handled accurately with BigInt. Everything stays in your browser.

Type an integer in any field and the rest convert automatically. Hex accepts both upper- and lowercase.

Examples (click to try)

Paste a prefixed value like 0xFF / 0b1010 / 0o755 and the base is detected automatically.

Pick any base from 2 to 36. Digits use 0-9 and a-z.

How to Use the Number Base Converter

Enter an integer into any of the binary, octal, decimal or hexadecimal fields, and the rest convert instantly. Use the button beside each field to copy that value.

  • Start from any field: whichever field you edit becomes the source, and the other three fields plus the custom-base field update live.
  • Hex is case-insensitive: FF and ff are treated as the same value.
  • Custom base (2–36): choose a base in the dropdown and type a value on the left to convert both ways. Digits use 0-9 and a-z.
  • Big integers supported: conversions run on BigInt, so huge integers beyond 64 bits convert without rounding errors.

For example, type 255 in the decimal field and it becomes 11111111 in binary, 377 in octal and FF in hex on the spot. Paste a prefixed value copied from code — such as 0xFF, 0b1010 or 0o755 — into any field and the base is detected automatically.

Where This Comes in Handy

  • Checking color codes (#ff8800) or bitmasks between hex and decimal
  • Reading network subnets or permissions (octal, like chmod 755)
  • Translating memory addresses or register values between binary and hex
  • Working with unusual bases such as base 32 or base 36 in puzzles and assignments

Binary, octal and hexadecimal reference table

The values that come up most in programming and bit manipulation, including the powers of two that sit on type boundaries (255/256, 1023/1024, 65535).

DecimalBinaryOctalHex
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012a
11101113b
12110014c
13110115d
14111016e
15111117f
16100002010
20101002414
24110003018
3111111371f
321000004020
63111111773f
64100000010040
100110010014464
12711111111777f
1281000000020080
20011001000310c8
25511111111377ff
256100000000400100
5111111111117771ff
51210000000001000200
1000111110100017503e8
1023111111111117773ff
1024100000000002000400
40951111111111117777fff
40961000000000000100001000
655351111111111111111177777ffff
655361000000000000000020000010000

255 is the largest unsigned value in one byte (eight binary 1s) and 65535 the largest in two. The tool above converts between any bases from 2 to 36 and handles large integers.

Frequently Asked Questions

Is the number I enter sent to a server?
No. All conversions run entirely in your browser. The numbers you enter are never transmitted to or stored on any server, so you can use the tool with confidence.
Can it convert very large numbers accurately?
Yes. It uses JavaScript BigInt internally, so integers with many digits convert without rounding errors — even values beyond the usual 64-bit range.
What is the custom base, and why 2 to 36?
The custom field lets you pick any base (radix) you like. Digits use 0-9 followed by a-z, which gives 36 possible symbols — so the highest base you can represent is 36, including bases like 32 or 36.