Toolbench  /  Developer  /  Number Base Converter

Developer

Number Base Converter

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

Input

Result

Binary
Octal
Decimal
Hexadecimal
AD SLOT — add your AdSense code here

About the number base converter

Computers count in bases other than ten: binary (base 2) for raw bits, octal (base 8) and hexadecimal (base 16) as compact ways to write those bits. One hex digit equals exactly four binary digits.

This converter takes a whole number in any of these bases and shows it in all four at once, validating that your input only uses digits legal for the chosen base.

It handles standard whole numbers up to the range JavaScript can represent exactly, which covers everyday programming, colour codes and permission masks.