Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
Convert numbers between binary, octal, decimal and hexadecimal.
The Number Base Converter changes a number written in one base into its equivalent in another base. It supports the four bases most commonly used in computing and mathematics: binary, octal, decimal and hexadecimal.
For related tasks, try Prime Number Checker, Roman Numeral Converter or Color Converter.
The input is parsed as an integer in the source base, then rendered as a string in the target base using standard positional notation.
The decimal number 255 equals FF in hexadecimal, 377 in octal and 11111111 in binary.
Whole non-negative integers are supported.
No, both uppercase and lowercase letters are accepted for hexadecimal input.
Numbers are limited by standard JavaScript integer precision, which safely covers everyday use.