Base Converter (Bin/Oct/Dec/Hex)
Convert any integer between binary (2), octal (8), decimal (10), and hexadecimal (16).
Result
General calculation reads
Amazon affiliateAs an Amazon Associate we may earn from qualifying purchases. This does not add cost for you.
How to use this calculator
- Enter value (with or without 0x/0b prefix).
- Pick the base of the input.
- Read all four common bases.
About this calculator
Number bases (radices) express the same integer with different digit symbols. Binary (base 2): only 0 and 1, foundation of digital computers. Hex (base 16): 0-9, A-F, used for memory addresses and color codes. Octal (base 8): rare today except Unix file permissions. Conversion is mechanical: parse from any base, output in any. JavaScript built-ins handle bases 2-36.
Frequently asked
Why hex?+
Color hex code?+
Octal still used?+
Negative numbers?+
Bigger than 32-bit?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
Convert decimal ↔ scientific notation. Standard form a × 10^b with 1 ≤ |a| < 10.
Euclidean algorithm: gcd(a,b) = gcd(b, a mod b). Supports 2-6 integers.
n = p₁^a₁ × p₂^a₂ × … Trial division to find all prime factors with multiplicity.
a mod n: remainder of a divided by n. Always non-negative for positive n.
(a + bi) ± (c + di), ×, ÷. Real part, imaginary part, modulus, argument.
Convert between 30 major world currencies using a snapshotted static rate table — clearly marked, not live.