Number Base Converter
Convert integers between binary, octal, decimal and hexadecimal, with BigInt precision and 0b/0o/0x prefixes.
Input base
Value
Enter a number to see it in all four bases
This tool runs entirely in your browser. Your input is never uploaded.
How to use
- 1Pick the input base: 2, 8, 10 or 16
- 2Type a value — 0b, 0o, 0x prefixes and a minus sign are accepted
- 3All four bases appear at once; copy each one you need
FAQ
Are decimals supported?
Only integers are converted. For floating-point values, scale to a fixed-point integer first.
Will large numbers lose precision?
No. Conversion uses JavaScript BigInt, so values beyond the safe integer range stay exact.
Do I need to remove prefixes?
No. 0b, 0o and 0x prefixes are detected automatically, and spaces or underscores as separators are ignored.
Related tools
JSON Formatter & Validator
Format, minify and validate JSON, compare two payloads path by path, and escape or unescape JSON strings.
Cron Expression Parser
Parse crontab expressions into a plain-language schedule and the next 5 run times.