All tools · 🔄 Convert

🔢 Number Base Converter

Convert any integer between binary, octal, decimal, and hex. Useful for low-level programming, bitwise debugging, and reading hex color codes.

Loading tool…

Examples

Decimal to all
Input255
Output0b11111111 · 0o377 · 255 · 0xFF
Binary to decimal
Input0b1010
Output10
Read a hex byte
Input0xff
Output11111111 · 255

Frequently asked questions

Why is 0x the hex prefix?

C language convention adopted by most modern languages. 0b for binary and 0o for octal are also common. Decimal needs no prefix.

Why does hex use 0-9 and A-F?

Base 16 needs 16 unique digits. We borrow A-F for 10-15 because they are familiar single characters. Some old systems used I-N or other alternatives.

When do I actually use these?

Hex: colors, memory addresses, RGB values. Binary: bitwise flags, low-level protocols. Octal: legacy Unix file permissions (chmod 755).

About this tool

Number Base Converter runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo