Base Converter
Type a number in any base and see it in binary, octal, decimal and hex at once. Everything runs on your device - nothing is ever uploaded.
Runs entirely on your device - nothing is ever uploaded.
More tools
- Hex Converter Translate text into hex bytes and back. Get started
- Excel to PDF Spreadsheet to a printable PDF. Get started
- Binary Converter Turn text into binary code and back again. Get started
- Excel to CSV Every sheet as its own clean CSV. Get started
- Temperature Converter Celsius, Fahrenheit, Kelvin and Rankine, instantly. Get started
- Speed Converter kph, mph, m/s, knots, and Mach. Get started
- Unit Converter Length, weight, temperature, and more. Get started
- JSON Formatter Pretty print, validate and minify JSON instantly. Get started
How to use Base Converter
- Type a number into the box for the base it is written in.
- Read the same value instantly in binary, octal, decimal, and hex.
- Click any result to copy it.
What it is for
Computers count in binary, humans in decimal, and programmers constantly need both plus octal and hex. A base converter translates one representation into the others without a mistake-prone manual calculation.
How it works
The input is parsed with JavaScript's number parser for the chosen base and re-printed in the others using big-integer-safe string conversion. Results update as you type and never leave your device. For text encoded as binary use the Binary Converter; for text encoded as hex use the Hex Converter.
Worked example
Enter FF in hex: binary 11111111, octal 377, decimal 255 - the maximum one-byte value (2⁸−1). Enter 1010 in binary: decimal 10, hex A. Prefixes 0b, 0o, and 0x are accepted.