Skip to main content
FreeFormatHub
Calculator

Number Base Converter

Convert numbers between different bases (binary, octal, decimal, hexadecimal, and more). Supports bases 2-36 with validation, digit grouping, and batch processing.

Number Input

Syntax: text
Current Settings:
Input Base: 10 (Valid digits: 0123456789)
Output: All common bases (2, 8, 10, 16)
Format: With prefixesGrouped

Converted Numbers

Output will appear here

Format: text

How It Works

Privacy First

This number base converter processes your data entirely in your browser. No data is uploaded to any server, ensuring complete privacy and security.

Lightning Fast

Instant processing with real-time validation and error detection. No waiting, no delays - just immediate results.

Versatile Use Cases

  • Programming and software development
  • Computer science education and learning
  • Digital circuit design and analysis

Mobile Friendly

Responsive design that works perfectly on all devices and screen sizes. Touch-friendly interface for mobile users.

Frequently Asked Questions

What number bases are supported?
The tool supports all bases from 2 (binary) to 36 (using digits 0-9 and letters A-Z). Common bases include binary (2), octal (8), decimal (10), and hexadecimal (16).
How do I specify the input base?
Use standard prefixes like 0b for binary, 0x for hex, 0o for octal, or the format "base r value" (e.g., "2r1010"). You can also set the input base in options.
What is digit grouping?
Digit grouping adds spaces to make long numbers more readable, like "1010 1010" for binary or "FF FF" for hex. This is especially useful for large numbers.
Can I convert negative numbers?
Yes, the tool handles negative numbers by converting the absolute value and preserving the negative sign in all output bases.
What's the maximum number size?
The tool can handle numbers up to JavaScript's MAX_SAFE_INTEGER (2^53 - 1) for accurate conversion. Larger numbers may lose precision.