Number Base Converter β€” bin / oct / dec / hex

Convert numbers between binary, octal, decimal and hexadecimal, live.

πŸ”’ Runs entirely in your browser. Your input and output are never sent to a server or stored β€” fully private.

Type in any field β€” the others update.

Did this tool help? Tap to react

About this tool

This converter changes a number between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) as you type, updating every field live. Enter a value in any base and the others follow instantly, which is handy for programming, debugging, networking and digital-electronics work. It runs fully in your browser.

Frequently asked questions

What are binary, octal and hexadecimal?

They are number systems with a different base, or number of digits. Binary uses 2 digits (0–1), octal 8 (0–7), decimal the familiar 10 (0–9) and hexadecimal 16 (0–9 then A–F). Hex is popular in computing because each digit maps neatly to four binary bits.

Can it convert negative numbers or decimals?

It is designed for non-negative whole numbers, which is what bases are most commonly used for in programming. For hexadecimal you can enter digits in upper or lower case, and the tool ignores a leading 0x or 0b prefix if you include one.

Is my data sent anywhere?

No. All base conversion happens in your browser, so the numbers you enter never leave your device.