Tools › Binary, Decimal & Hex Converter
Binary, Decimal & Hex Converter
Free online number base converter. Turn binary into decimal, decimal into hex or octal, or any base from 2 to 36. Handles huge numbers and 0x/0b prefixes.
Use it from code
The same function is available as an API endpoint. Free tier: 200 calls per day without a key. Pro lifts the limit.
curl -X POST https://spincrus.uz/api/v1/tools/number-base-converter \
-H "content-type: application/json" \
-H "x-api-key: YOUR_KEY" \
-d '{"value":"11111111","fromBase":2}' FAQ
How do I convert binary to decimal?
Set the input base to 2 and type the binary digits. Each digit is multiplied by a power of two, counting from the right, and the products are added: 1101 is 8 + 4 + 0 + 1 = 13.
Can I paste numbers with 0x or 0b prefixes?
Yes. A leading 0x, 0b or 0o sets the input base automatically (hex, binary, octal). Spaces, commas and underscores inside the number are ignored, so 1111_0000 works.
Is there a size limit on the number?
No practical one. The conversion uses arbitrary-precision integers, so values beyond 2^53 stay exact. Only whole numbers are supported; fractions and floating point are rejected.
Related tools
Cron Expression Explainer
Paste any cron expression and get a plain-English explanation instantly. Supports ranges, steps, lists and @daily/@hourly aliases.
Readability Checker
Free readability score calculator: Flesch Reading Ease, Flesch-Kincaid grade, Gunning Fog and ARI, plus word count and reading time.
JSON to CSV Converter
Convert JSON arrays to CSV online. Nested objects are flattened with dot notation, quotes are escaped correctly, works with large files.