Number Base Converter
Number Base Converter instantly converts any whole number between binary, octal, decimal and hexadecimal. Type a value, pick its base, and see all four representations at once. All processing happens locally in your browser, and nothing is sent to a server.
About Number Base Conversion
Number base (or radix) conversion expresses the same value in different numeral systems. Binary (base 2) uses 0-1, octal (base 8) uses 0-7, decimal (base 10) uses 0-9, and hexadecimal (base 16) uses 0-9 and a-f.
This converter uses arbitrary-precision integers, so very large numbers convert accurately without rounding errors.
Base conversion shows up everywhere in programming: memory addresses and colour codes in hexadecimal, file permissions in octal, and bitmasks or flags in binary. Hexadecimal stays popular because two hex digits map neatly onto one byte, which makes raw data compact and easy to scan.
Set a register width and negative numbers stop being a minus sign in front of a magnitude and become the bit pattern the hardware actually holds, which is what a debugger shows you and what a protocol on the wire carries. The bit row underneath spells that pattern out in full, padded to the width, so a value like -1 reads as a run of ones rather than as a number. Everything is computed with arbitrary precision integers, so a 64 bit value stays exact instead of rounding above 2^53.
Related tools
Reshaping data by hand again?
A payload you have to fix in a browser tab every time is a job for code. We build the integrations, parsers and services that move data between systems, and we repair the ones that quietly corrupt it on the way through.
Tell us what you are moving