← Back to Tools

Number Base Converter

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

Binary (Base 2)

0

Octal (Base 8)

0

Decimal (Base 10)

0

Hexadecimal (Base 16)

0

Base 32

0

Base 36

0

Common Values Reference

DecimalBinaryOctalHex
0000
1111
81000108
16100002010
321000004020
64100000010040
1281000000020080
256100000000400100

Click any result to copy it to clipboard

Copied!

What Is a Number Base Converter?

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.

How It Works

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.

Frequently Asked Questions

What number bases does this converter support?

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.

How do I convert decimal to binary?

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.

What is hexadecimal used for?

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.

Can I convert very large numbers?

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.

What's the difference between octal and binary?

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.

Is this converter free to use?

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.

Can I use negative numbers or decimals?

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.

Can I use negative numbers or decimals?

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.

Related Tools

Word Counter Character Counter JSON Formatter Password Generator Scientific Calculator Roman Numeral Converter