CalcHub

Base Converter

Convert between binary, octal, decimal and hexadecimal.

Each digit position represents base^position. Example: FF₁₆ = 15×16 + 15 = 255₁₀.

Why is hexadecimal used in computing?
Hex groups binary digits neatly: one hex digit equals exactly four bits (0–15), which makes byte values readable, e.g. #FF0000 for red.
What is the largest number supported?
Numbers up to 2⁵³ − 1 (JavaScript's safe integer limit), which covers everyday use. Larger values would lose precision.
How do I convert decimal to binary by hand?
Repeatedly divide by 2 and read the remainders from bottom to top. For example, 13 ÷ 2 leaves remainders 1,0,1,1 read upward as 1101.

All calculators

More from ToolsBoxes: ToolHub — developer tools · File Converter · Image AI Tools · DocBox — Markdown & diagrams