Number Base Converter
Convert between binary, octal, decimal, hex.
From base
Enter a value to convert across bases.
How to use it
- Choose the base of your input.
- Type the number.
- Read and copy it in binary, octal, decimal, and hex.
About this tool
The number base converter reads a non negative whole number in the base you choose and shows it in binary, octal, decimal, and hexadecimal. It checks that the digits are legal for the chosen base. It works with safe integers, so very large values beyond standard precision are flagged rather than shown incorrectly.
Examples
Input
255 in decimalOutput
11111111, 377, 255, FFInput
ff in hexOutput
11111111, 377, 255, FFCommon uses
- Convert a hex byte to decimal
- Read a binary value as a number
- Get the hex form of a decimal
- Check a permission or flag value
FAQ
Is my input uploaded?
No. The conversion runs in your browser. Nothing you enter is sent anywhere.
Does it handle decimals or negatives?
No. It converts non negative whole numbers, since base notation for fractions and signs varies by context.
What about very large numbers?
Values beyond the safe integer range are flagged, because converting them could lose precision and show a wrong result.
Related tools
Developer
JSON Formatter
Format, validate, beautify, and minify JSON.
Open toolDeveloper
Base64 Encoder and Decoder
Encode text to Base64 or decode it back.
Open toolDeveloper
Password Generator
Generate strong random passwords with length and character options.
Open toolDeveloper
UUID Generator
Generate v4 UUIDs in bulk.
Open toolDeveloper
URL Encoder and Decoder
URL-encode or decode percent-encoded strings.
Open toolEmbed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.