Binary, octal, decimal and hex — any size. Runs entirely in your browser — nothing you paste is sent anywhere.
6 answers to what people ask most about the Number Base Converter.
Type the decimal number into the Decimal field. The Binary field shows the result, so 255 becomes 11111111.
Enter the hex value in the Hexadecimal field, with or without a 0x prefix. The decimal value appears in the Decimal field, so FF gives 255.
No practical limit. The tool uses arbitrary-size integers, so very long binary or hex values convert exactly instead of rounding like normal JavaScript numbers.
The text contains a digit that does not exist in that base, such as 2 in binary or 9 in octal. The message under the field names the base.
No. It handles whole, non-negative numbers only. Two's complement and floating-point formats are not covered.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue