Number Base Converter

Convert binary, octal, decimal, hex and any base from 2 to 36.

About this number base converter

Type a number in any field and the others update instantly: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16) and a custom base from 2 to 36. The converter uses arbitrary-precision integers, so very large values stay exact, and negative numbers are supported.

Sizes in bytes and bits? See the data storage converter and data transfer rate converter.

Programming

Read memory addresses, bit masks, colour codes and flags in hex or binary.

Computer science

Practise base conversions and understand how integers are stored in bits.

Networking & electronics

Work with IP and MAC address fragments, registers and byte values.

Tips for accurate results

Prefixes are accepted

You may type 0b1010, 0o17 or 0xFF in the matching field, and spaces or underscores are ignored, so 1111_0000 works.

Hex shortcuts

Each hex digit equals exactly four binary digits: 0xF = 1111 and 0xA5 = 1010 0101.

Frequently asked questions

How do I convert binary to decimal?

Multiply each bit by its power of two and add the results. For example, 1101 = 8 + 4 + 0 + 1 = 13. Or paste it in the binary field above.

How do I convert decimal to hexadecimal?

Repeatedly divide by 16 and read the remainders bottom to top, using A-F for 10-15. For example, 255 = FF.

Does it handle fractions?

No, this converter works with whole numbers (integers). Fractional base conversion is not supported.

What digits are used in base 36?

Digits 0-9 followed by letters A-Z, giving 36 symbols.

⭐ User Reviews

0
☆☆☆☆☆
0 reviews
💬
No Reviews Yet
Be the first to share your experience with this tool!
Your feedback helps others make better decisions.