Numeric base converter
Convert numbers between binary, decimal, octal, hexadecimal and base64 in real time, free and directly in your web browser with no signup.
Examples
Click an example to fill the form and calculate.
| Input (decimal) | Result (other bases) |
|---|---|
| 255 | 11111111 bin · 377 oct · FF hex · D/ b64 |
| 42 | 101010 bin · 52 oct · 2A hex · q b64 |
| 1010 | 1111110010 bin · 1762 oct · 3F2 hex · Py b64 |
| 1 | 1 bin · 1 oct · 1 hex · B b64 |
| 12648430 | 110000001111111111101110 bin · 60177756 oct · C0FFEE hex · wP/u b64 |
Frequently asked questions
Which bases are supported?
Binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16) and Base64 — enter a number and see it in all five at once.
What is hexadecimal used for?
Compact notation for binary values: each hex digit represents 4 bits. Colors (#FF5500), memory addresses and hashes are typically written in hex.
Is this Base64 the same as the text encoder?
This tool encodes a NUMBER into the Base64 alphabet by value; for encoding TEXT to Base64 (RFC 4648, with padding), use the Text Encoder tool.