Gliora

Number base converter

Number base converter (binary, decimal, hex)

Decimal
42
Binary
101010
Octal
52
Hexadecimal
2A

Convert integers between the bases most used in computing. The calculation runs in your browser.

This number base converter turns an integer in binary, octal, decimal or hexadecimal into all four bases at once. Choose the source base, type a value, and the conversions update as you type.

Bases for programmers

Useful for debugging, bitwise work, colour codes and low-level data. Everything is computed locally in your browser.

FAQ

Which number bases are supported?
Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) — the four most common in programming.
Can it convert negative numbers or decimals?
It works with non-negative integers, the usual case for base conversion in computing. Invalid input for the chosen base is flagged.
What is hexadecimal used for?
Hex is a compact way to write binary: each digit maps to 4 bits. It's common for colours (#FF8800), memory addresses and byte values.