Loading…
Converts numbers between binary, octal, decimal and hex bases. Use when debugging encodings or flags; differs from roman-numeral-converter by positional bases vs Roman symbols. Returns all-base equivalents. 100% client-side.
Base Converter is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Converts numbers between any two bases from binary (base-2) to base-64 with arbitrary precision using JavaScript BigInt. Features include auto-detection of common prefixes (0b, 0o, 0x), two's complement representation for negative numbers, ASCII interpretation showing what bytes the number represents as characters, step-by-step conversion showing the division algorithm, and support for fractional input with configurable precision.
Developers frequently need to convert between number bases for low-level data, bit manipulation, memory addresses, or network protocols. A single tool handling arbitrary bases, large numbers (BigInt), and signed representations eliminates context-switching between specialized calculators.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Systems programmers (Rust, C, C++) working with binary protocols, embedded engineers reading register values, security researchers analyzing memory dumps, computer science students, and web developers interpreting color codes or bitfields.
Enter your number — prefixes like 0b, 0o, 0x are auto-detected, or manually select input base
Select the output base from the dropdown (base-2 through base-64)
Toggle options: 'Show Steps', 'ASCII Interpretation', and 'Two's Complement' for signed negatives
Click 'Convert' or press Enter — result appears with step-by-step breakdown if enabled
For fractional numbers (e.g. 12.75), both integer and fractional parts are converted and combined
Copy the result or copy a specific step from the step list for documentation
Input: '0xFF' | To: Decimal | Auto-detect => Output: '255' (auto-detects 0x prefix)Input: '-42' | To: Binary 8-bit | Two's Complement ON => Output: '11010110'What is the maximum input size?
BigInt supports arbitrarily large integers limited only by memory.
How does two's complement work for non-8-bit widths?
The tool uses output base to determine bit width.
Can I convert fractional numbers like 3.14159?
Yes, both integer and fractional parts are converted separately.
What does ASCII interpretation show?
Groups the number into bytes and maps each to its ASCII character.
Authoritative specifications, standards, and in-depth reading for Base Converter.
25511111111377255ff7v733/Bit Length
8
ASCII Interpretation
.
Two's Complement (signed, 8-bit)
000000011. Parse input "255" in base-10
2. Convert to decimal: 255
3. Convert to Binary (base-2): 11111111
3. Convert to Octal (base-8): 377
3. Convert to Decimal (base-10): 255
3. Convert to Hexadecimal (base-16): ff
3. Convert to Base-32: 7v
3. Convert to Base-36: 73
3. Convert to Base-64: 3/
Convert Unix timestamps to readable dates and back. Supports timezones and multiple formats.
Convert text between camelCase, PascalCase, snake_case, kebab-case and UPPER. Use for code naming; for URL slugs use slug-generator. Input: text ≤10MB. Returns converted cases. 100% client-side.
Generate TypeScript interfaces from JSON with optional readonly and export. Use for TS types; for Go use json-to-go, for generic code use json-to-code. Input: JSON ≤10MB. Returns .ts interfaces or JSON error. 100% client-side.
Generate Go structs with json tags from JSON. Use for Go only; for TypeScript use json-to-typescript. Input: JSON ≤10MB. Returns Go code or JSON error. 100% client-side.
Converts between Arabic numbers and Roman numerals with validation. Use for chapters, clocks or outlines; differs from base-converter by Roman symbols vs positional bases. Returns numeral or number. 100% client-side.
Reformats delimited lists between commas, lines, JSON, SQL and bullets. Use when cleaning pasted lists; differs from case-converter by delimiters and structure vs letter casing. Returns list with dedupe options. 100% client-side.
Extract HTML tables to JSON arrays for scraping. Use for <table> input only; for CSV to JSON use csv-to-json. Input: HTML with tables ≤10MB. Returns JSON array or NO_TABLE_FOUND error. 100% client-side.
Generate code types from JSON. Use for boilerplate; for TS only use json-to-typescript, for Go use json-to-go. Input: JSON ≤10MB. Returns code. 100% client-side, files never leave browser.