UTILS.
Private by default
0x

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Convert a number between binary, octal, decimal and hexadecimal, all at once. Backed by BigInt, so it handles very large integers exactly without rounding. Click any result to copy it.

Choose the input base (2, 8, 10 or 16) and results update as you type. Input is case-insensitive, outer spaces are ignored, and one leading minus sign is kept in every result: -ff in base 16 shows -11111111 in binary. Hex output is in capitals. Digits outside the base, decimal points, plus signs, inner spaces and a 0x prefix are rejected as invalid; only whole numbers work.

Frequently asked questions

Can it handle huge numbers?
Yes. It uses BigInt arithmetic, so even very large integers convert exactly with no precision loss.
What is hexadecimal used for?
Base-16 is compact and maps neatly to bytes, so it is common for colors, memory addresses and binary data.
Are negatives and fractions supported?
Negative whole numbers are, shown with a minus sign rather than two's complement. Fractions are not.
Can I type a 0x or 0b prefix?
No. In hex a leading 0b would be read as the digits 0 and b.

More tools