Number Base Converter
Convert integers between binary, octal, decimal, and hexadecimal. Uses BigInt so large IDs and bit masks still round-trip. All math is local. There is no integer-conversion API.
Runs in your browser. Nothing is uploaded.
0 characters · 0 lines
0 characters · 0 lines
About this tool
Convert integers between binary, octal, decimal, and hexadecimal using BigInt, so values larger than 32-bit still round-trip. Hex input may include a 0x prefix; underscores and spaces are ignored.
How to use: paste a number, pick From and To bases, copy. Switch swaps the bases and feeds the output back in. Invalid digits for the source base show an error instead of a wrong value.
Example: 255 in decimal is ff in hex and 11111111 in binary. Useful for bit masks, color-ish integers, and permission flags. This is not IEEE float conversion.
Math is local. Related: hex converter for UTF-8 text rather than integers, IPv4 converter for dotted addresses. After load, converting works offline.
Related Convert tools
JSON ↔ YAML
Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.
JSON ↔ TOML
Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.
JSON ↔ XML
Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.
JSON ↔ CSV
Turn an array of JSON objects into CSV, or parse CSV headers into JSON objects. Quote-aware parsing runs in the tab so spreadsheets of IDs and emails are not uploaded to a conversion service.
JSON to SQL
Turn a JSON object or array of objects into SQL INSERT statements. Set a table name, copy the query, and keep rows on the device instead of pasting fixtures into a hosted converter.
CSV ↔ TSV
Convert comma-separated values to tab-separated values and back, preserving quoted fields. A small delimiter swap for dumps you would rather not paste into a spreadsheet SaaS.