Skip to content
DDevToolery

Number Base Converter

Convert a value between binary, octal, decimal and hex at once.

Loading tool…

About this tool

Converts a number between binary, octal, decimal and hexadecimal, showing every representation at once along with the bit width. Conversion uses BigInt throughout, so values stay exact well past the point where a JavaScript number starts rounding.

Limitations

  • Values are handled as BigInt, so precision holds well past 2^53.

Questions

Can it handle very large numbers?
Yes. Everything is computed with BigInt, so precision holds beyond 2^53, where ordinary JavaScript numbers silently lose digits.
Do I need the 0x prefix?
No, but it helps. A 0x, 0b or 0o prefix is recognised and overrides the selected input base.

Privacy

This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.