Convert numbers between binary, octal, decimal, and hexadecimal.
Enter a number and select the input base — all conversions appear instantly
Quick examples
Enter a number above to see conversions
Supports binary, octal, decimal, hexadecimal, and custom bases 2–36
100% Private — Runs in Your Browser
All base conversions happen locally using JavaScript. Your numbers are never sent to any server, stored, or shared. Close the tab and your data is gone.
Converting between number bases is fast and simple. Follow these steps:
Digits: 0, 1
The language of computers. Every bit is either 0 (off) or 1 (on). Used in all digital systems, networking (IP addresses), and low-level programming.
Digits: 0–7
Each octal digit represents exactly 3 binary bits. Historically used in Unix file permissions (e.g., chmod 755) and early computing systems.
Digits: 0–9
The standard numeral system used by humans worldwide. Most readable for everyday numbers, and the common ground between all base conversions.
Digits: 0–9, A–F
Each hex digit maps to 4 binary bits. Used for memory addresses, color codes (#FF5733), MAC addresses, and debugging raw data.
Convert hex color codes to RGB values. Inspect and decode CSS color values like #3366FF.
Convert IP addresses between decimal and binary to understand subnet masks and CIDR notation.
Convert hex memory addresses to decimal for breakpoint calculations and pointer arithmetic.
Convert between hex register values and binary bit fields when configuring hardware peripherals.
Inspect and convert hex-encoded hash values, encryption keys, and certificate serial numbers.
Understand how Base64 and Base32 encoding work by examining the underlying binary and hex representations.
Learn how number systems work by converting between bases and observing the digit patterns.
Convert hex color values and bit-packed game data between formats during shader and texture work.
Common values shown across all four bases for quick reference:
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 0000 | 000 | 00 |
| 1 | 0000 0001 | 001 | 01 |
| 15 | 0000 1111 | 017 | 0F |
| 16 | 0001 0000 | 020 | 10 |
| 32 | 0010 0000 | 040 | 20 |
| 64 | 0100 0000 | 100 | 40 |
| 127 | 0111 1111 | 177 | 7F |
| 128 | 1000 0000 | 200 | 80 |
| 255 | 1111 1111 | 377 | FF |
| 256 | 0001 0000 0000 | 400 | 100 |
| 1024 | 0100 0000 0000 | 2000 | 400 |
| 65535 | 1111 1111 1111 1111 | 177777 | FFFF |
Encode and decode Base64 strings and files.
Generate random UUIDs (v4) instantly.
Format, validate, and beautify JSON data instantly.
Generate MD5, SHA-1, SHA-256, and other hash values from text.
Calculate your exact age in years, months, weeks, days, and even seconds.
Calculate percentages, increases, decreases, and differences.
Convert between units of length, weight, temperature, and more.
Calculate your Body Mass Index based on height and weight.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support