How to Convert Number Bases Online

Convert numbers between binary, octal, decimal, and hexadecimal instantly. Free online base converter with step-by-step explanations and support for custom bases (2-36).

Open Number Base Converter →

Step-by-Step Guide

1

Enter your number

Type or paste the number you want to convert. The tool accepts numbers in any base — binary (0s and 1s), octal (0-7), decimal (0-9), or hexadecimal (0-9, A-F). Prefix notation like 0x, 0b, 0o is also supported.

2

Select the source base

Choose the base of your input number. Common bases include Binary (2), Octal (8), Decimal (10), and Hexadecimal (16). For advanced use, you can select any base from 2 to 36.

3

See all conversions

The tool instantly displays the number converted to all common bases simultaneously — binary, octal, decimal, and hex. No need to convert one at a time. Each result can be copied with a single click.

4

Copy the result

Click on any converted value to copy it to your clipboard. The tool preserves proper formatting — including leading zeros for binary, 0x prefix for hex, and grouping separators for readability.

Try It Now — Free

No signup, no download. Runs entirely in your browser.

Open Number Base Converter

Frequently Asked Questions

What number bases are supported?
The tool supports any base from 2 to 36. Common bases include binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Bases above 16 use letters A-Z to represent digits beyond 9.
Can I convert very large numbers?
Yes. The tool uses JavaScript BigInt for precision, so it handles arbitrarily large integers without floating-point errors. This makes it suitable for cryptographic values, memory addresses, and other large numbers.
How do I convert binary to hex?
Enter your binary number, select Base 2 as the source, and the hexadecimal result appears instantly. Every 4 binary digits map to one hex digit, making the conversion straightforward.
Related Reference

JavaScript Cheat Sheet

View Cheat Sheet →

More Guides