Number Base Converter
Convert between binary, octal, decimal and hexadecimal.
Input
This tool runs entirely in your browser. The data you paste or load is never uploaded.
Result
Enter your input, then run the tool.
About this tool
Converts an integer between bases 2 to 36 and always shows the binary, octal, decimal and hexadecimal forms side by side. Large values are handled exactly with BigInt, so 64-bit identifiers keep every digit.
How to use it
- Enter the number and choose the base it is written in.
- Press Convert.
- Copy the representation you need from the table.
Frequently asked questions
Can I paste values with a 0x or 0b prefix?
Yes. The prefix is removed when it matches the selected base, and underscores or spaces used as digit separators are ignored.
Are negative numbers supported?
Yes. A leading minus sign is kept in every base; two’s complement is not applied.
Keep going
Related tools
Unix Timestamp Converter
Convert epoch seconds and milliseconds to dates and back.
HEX to RGB Converter
Convert HEX colour codes to RGB and HSL.
Text to ASCII Converter
Convert text to ASCII codes and back, in any base.
JSON Formatter
Pretty-print compact or broken JSON with a readable indentation.
JSON Validator
Check JSON syntax and see exactly where it breaks.
JSON Minifier
Strip whitespace from JSON to shrink payloads.