Back to tools
Module · Math · Scientific
Base Converter
Convert integers between binary, octal, decimal and hexadecimal representations instantly.
From base
Binary (base 2)101010
Octal (base 8)52
Decimal (base 10)42
Hex (base 16)0x2A
Advertisement
Guide
How Base Converter works
Step 01
Enter value
Type the number in any of the four bases.
Step 02
Pick source base
Binary, octal, decimal or hex.
Step 03
See all four
All representations shown instantly.
FAQ
Frequently asked
What is 101010 in decimal?+
42 — the classic binary joke.
Are prefixes supported?+
Yes — 0x for hex, 0b for binary, 0o for octal are stripped automatically.