Illustration of a number converting between binary, decimal, and hex representations

Binary ↔ Decimal ↔ Hex Converter

Type a number into any field — the other two update live. Supports arbitrary-precision integers (not limited to 64 bits), and an optional 0b/0x prefix on input. Runs entirely in your browser.


💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/base-converter/api -H "Content-Type: application/json" -d '{"value":"255","base":"decimal"}'
curl -sS -X POST https://devops.majbase.com/base-converter/api -H "Content-Type: application/json" -d '{"value":"ff","base":"hex"}'

Returns {"binary", "decimal", "hex"}, or {"error": "..."}.