Hex / Decimal / Binary / Octal Converter
Convert numbers exactly between hexadecimal, decimal, binary, and octal.
Input
All conversions run locally in the browser with exact BigInt/rational arithmetic.
Output
Copy or download conversion as JSON.
Steps
How it works
How it works
Step by step
Features
Features
Hex, decimal, binary, and octal
Convert numbers between the most important number systems including automatic source base detection.
Exact BigInt/rational arithmetic
Integers, bit patterns, and fractions are processed locally and precisely.
Frequently asked questions
Frequently asked questions
How does automatic source base detection work?
Auto detects 0x or # as hex, 0b as binary, and 0o as octal. Without a prefix, decimal is assumed.
More tools
More tools
JSON Formatter
Validate, format, minify, analyze, and inspect JSON as a tree locally.
Base64 Decoder
Decode Base64, Base64URL, MIME Base64, or data URLs to bytes directly in the browser.
Base64 Encoder
Encode text or local files to Base64, Base64URL, MIME Base64, or data URLs directly in the browser.
bcrypt / MD5 / SHA-256 Generator
Generate and verify bcrypt password hashes and calculate MD5 and SHA-256 digests locally.