Convert numbers between binary, decimal, hexadecimal, octal, and any base from 2 to 36.
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 128 | 10000000 | 200 | 80 |
| 256 | 100000000 | 400 | 100 |
Click any result to copy it to clipboard
A number base converter is a tool that translates numeric values between different numeral systems (also called radix or base systems). Every number can be represented in multiple bases — for example, the decimal number 255 is written as 11111111 in binary, FF in hexadecimal, and 377 in octal. Each base determines how many unique digits are available: binary uses two digits (0 and 1), decimal uses ten (0–9), and hexadecimal uses sixteen (0–9 and A–F). This converter supports all integer bases from 2 to 36, covering every practical use case in programming, mathematics, digital electronics, and computer science education.
Our number base converter instantly translates numbers between different numeral systems. Whether you need to convert decimal to binary for programming, hexadecimal for colors, or octal for file permissions, this tool handles it all. Supports bases 2 through 36, covering all practical computing needs.
Step 1 — Enter your number: Type or paste any number into the input field. By default the field is pre-filled with 255 (decimal) so you can see conversions immediately.
Step 2 — Choose the source base: Use the "From Base" dropdown to tell the tool what numeral system your input is in. Common choices are Decimal (10), Binary (2), Hexadecimal (16), and Octal (8), but any base from 2 to 36 works.
Step 3 — Click Convert: The tool parses your input in the selected source base, converts it to a decimal integer internally using JavaScript's built-in parseInt(value, radix), and then renders the result in all six common output bases simultaneously.
Step 4 — Copy results: Click any result box to instantly copy its value to your clipboard. A "Copied!" notification confirms the action. You can also reference the built-in lookup table for common values like 0–256.
Supported Bases: Binary (base 2) uses only 0s and 1s — the language of all digital circuits. Octal (base 8) groups binary into 3-bit chunks, commonly seen in Unix permissions (chmod 755). Decimal (base 10) is the everyday numbering system. Hexadecimal (base 16) uses 0-9 and A-F, standard for memory addresses, color codes, and debugging. Base 32 and Base 36 use alphanumeric characters (0-9, A-V and 0-9, A-Z) for compact data encoding.
This converter supports any integer base from 2 to 36, including binary, octal, decimal, hexadecimal, base 32, and base 36. The upper limit of 36 is due to using 0-9 and A-Z as digits.
Simply enter your decimal number in the input field, make sure "From Base" is set to Decimal (10), and the binary result will appear automatically in the Binary (Base 2) box. Click it to copy.
Hexadecimal (base 16) is commonly used in computing for representing memory addresses, color codes in web design (#FF0000 for red), and binary data in a more readable format.
Yes, this converter supports JavaScript's maximum safe integer (9,007,199,254,740,991). For numbers beyond this limit, use BigInt-supporting tools or specialized libraries.
Octal uses digits 0-7 and represents 3 bits per digit. Binary uses only 0s and 1s. Octal is sometimes used in Unix file permissions (chmod 755) while binary is the fundamental language of computers.
Absolutely. This number base converter is completely free with no limits or restrictions. Use it as often as you need for programming, math, or learning.
This converter handles negative numbers by preserving the sign and converting the absolute value. Fractional or floating-point numbers are not supported since numeral base conversion applies to integers. If you need to work with floating-point hex or binary representations, use a specialized IEEE 754 converter instead.
This converter handles negative numbers by preserving the sign and converting the absolute value. Fractional or floating-point numbers are not supported since numeral base conversion applies to integers. If you need to work with floating-point hex or binary representations, use a specialized IEEE 754 converter instead.