Skip to content

Base Converter — binary, octal, decimal, hex and Base64

Runs 100% in your browser — nothing is uploaded, nothing is stored.

Convert a number between binary, octal, decimal, hexadecimal and Base64 in one view. Pure math in the page.

Binary—
Octal—
Decimal—
Hexadecimal—
Base64—

What the base converter does

Enter a number in any of the common bases (2, 8, 10, 16 or 36) and see it expressed as binary, octal, decimal, hexadecimal and Base64 at once. Handy when reading memory addresses, color values or encoded identifiers.

Frequently asked questions

What is Base64?
A way to represent data using only letters, digits and two symbols, so it survives text-only systems. Here it shows the decimal number encoded as text.

Why would I convert bases?
Programmers read hex for colors and memory, binary for bit flags, and octal for Unix permissions. One box keeps them all in view.

Is anything uploaded?
No. Conversion runs in the page.

How to use it

  1. Enter a number into any one of the five input fields labeled Binary, Octal, Decimal, Hex, or Base64.
  2. Click the radio button matching the base of the value you just entered (2, 8, 10, 16, or 36) so the tool knows how to interpret your input.
  3. Read the converted results displayed in the remaining four fields; all values update instantly as you type.
  4. Delete or overwrite the number to convert a different value without refreshing the page.

Where it comes in handy

A Unix file permission of 755 means owner has read-write-execute, group and others have read-execute. Entering 755 in the Octal field shows it as 111101101 in Binary and 493 in Decimal, confirming the standard rwxr-xr-x breakdown at a glance.

Web developers often read colors in hex, such as #FF5733. Pasting FF5733 into the Hex field reveals its decimal value of 16733747 and its full 24-bit binary representation, useful when working with low-level graphics or shader code that expects integer color values.

Memory addresses in documentation frequently appear as 0x00401000. Switching the input base to 16 and entering that value shows the octal 0o40020000, decimal 4198400, and the binary layout, helping you verify alignment boundaries like 4 KB page boundaries.

Worth knowing

  • The Base64 field encodes the decimal interpretation of your input as text. It does not treat the input as raw bytes, so the output is a number-to-base64 string, not a general binary-to-base64 conversion.
  • Base36 accepts digits 0–9 and lowercase letters a–z only. Supplying uppercase letters or symbols triggers an invalid-input state and the other fields go blank until corrected.
  • Very large integers may lose precision because the calculation runs in the browser using standard floating-point arithmetic. Values above roughly 253 (9,007,199,254,740,992) can produce incorrect results in the binary and decimal fields.

Related tools

Scroll to Top