Number Base Converter
Convert integers between binary, octal, decimal, and hexadecimal.
Number Base Converter workspace
About Number Base Converter
Programming commonly uses base 2, 8, 10, and 16. Prefixes such as 0b, 0o, and 0x identify non-decimal inputs; this converter preserves exact large integers with BigInt.
How to use
- Enter an integer with an optional 0b, 0o, or 0x prefix.
- Convert it.
- Copy the required representation.
FAQ
Can it convert large integers exactly?
Yes. It uses BigInt and does not round values to JavaScript's floating-point safe-integer limit.