Number Base Converter
Convert integers between bases (binary, octal, decimal, hexadecimal, base36). Uses BigInt for large values.
Enter an integer and choose its base, then click Convert.
Results
Formula
Tool description
This tool converts an integer value from one base into multiple output bases. It supports large integers via BigInt and avoids floating point issues.
How to use
- Enter your integer (for example, 255 or FF).
- Select the input base (or auto-detect using 0b/0o/0x prefixes).
- Convert to see outputs in common bases.
- Copy results for documentation or debugging.
Why it’s useful
- Debug bitmasks and flags (binary/hex).
- Convert IDs and tokens across systems.
- Work with very large integers safely.
Use cases & interpretation
- Protocol work: compare binary and hex representations.
- Coding interviews: sanity-check conversions quickly.
- Data work: convert base36 values used in compact IDs.
FAQs
No. This version supports integers only (using BigInt). Fractional base conversion requires a different approach.
It detects 0b (binary), 0o (octal), 0x (hex), otherwise defaults to decimal.
Other tools in this category
Base64 Converter
Encode/decode Base64 safely (Unicode-friendly) with copy and reset.
iFrame Generator New
Generate a safe, copy-ready HTML iframe snippet with optional sandboxing and preview.
JSON Formatter New
Format, minify, and optionally sort JSON keys with clear errors and copy buttons.
Regex Tester New
Test regular expressions with flags, view matches/groups, and preview replacements.
Unix Timestamp Converter New
Convert Unix timestamps (seconds/milliseconds) to dates and back with UTC/local output.
URL Encoder/Decoder New
Encode or decode URLs and components with options for query-string plus spacing.
UUID Generator New
Generate UUID version 4 values in bulk with copy and formatting options.
Lorem Ipsum Generator New
Generate Lorem Ipsum placeholder text by words, sentences, or paragraphs with copy and reset.
Encode/decode Base64 safely (Unicode-friendly) with copy and reset.
iFrame Generator New
Generate a safe, copy-ready HTML iframe snippet with optional sandboxing and preview.
JSON Formatter New
Format, minify, and optionally sort JSON keys with clear errors and copy buttons.
Regex Tester New
Test regular expressions with flags, view matches/groups, and preview replacements.
Unix Timestamp Converter New
Convert Unix timestamps (seconds/milliseconds) to dates and back with UTC/local output.
URL Encoder/Decoder New
Encode or decode URLs and components with options for query-string plus spacing.
UUID Generator New
Generate UUID version 4 values in bulk with copy and formatting options.
Lorem Ipsum Generator New
Generate Lorem Ipsum placeholder text by words, sentences, or paragraphs with copy and reset.
Encode/decode Base64 safely (Unicode-friendly) with copy and reset.
iFrame Generator New
Generate a safe, copy-ready HTML iframe snippet with optional sandboxing and preview.
JSON Formatter New
Format, minify, and optionally sort JSON keys with clear errors and copy buttons.
Regex Tester New
Test regular expressions with flags, view matches/groups, and preview replacements.
Unix Timestamp Converter New
Convert Unix timestamps (seconds/milliseconds) to dates and back with UTC/local output.
URL Encoder/Decoder New
Encode or decode URLs and components with options for query-string plus spacing.
UUID Generator New
Generate UUID version 4 values in bulk with copy and formatting options.
Lorem Ipsum Generator New
Generate Lorem Ipsum placeholder text by words, sentences, or paragraphs with copy and reset.