Number Base Converter
Enter a number in binary, octal, decimal, or hexadecimal and see all representations update with BigInt precision.
Input
Results
- BIN
- 11111111
- OCT
- 377
- DEC
- 255
- HEX
- FF
How it works
Enter your input
Fill in the values, paste your text, or upload the file this tool works with.
See results instantly
Most tools update live as you type; a few use a single button. Either way, the result appears right on this page.
Use your results
Copy, download, or share what the tool produces — you're always in control of the output.
What is Number Base Converter?
Convert integers between binary, octal, decimal, and hexadecimal, including large values that need BigInt precision.
How to convert number bases
Accepted input
Choose the base of the number you are entering. Spaces and underscores are ignored, optional 0b, 0o, and 0x prefixes are accepted, and negative integers keep their sign.
Output formats
The result panel shows the same integer in BIN, OCT, DEC, and HEX. Hexadecimal output uses uppercase A-F for readability.
What it does not handle
- Fractional values or decimal points.
- Scientific notation such as 1e6.
- Two's-complement width calculations for signed binary storage.
Conversion notes
The converter treats input as an integer value, not as a fixed-width memory representation. Add your own byte width when you need two's-complement interpretation.
Frequently Asked Questions
Can I paste 0xFF or 0b1010?
Yes. Prefixes such as 0x, 0o, and 0b are stripped after the sign, as long as the selected input base matches the digits.
Why is my number rejected?
At least one digit is outside the selected base, such as 2 in binary or G in hexadecimal.
Does it support very large integers?
Yes. The conversion uses BigInt, so values larger than JavaScript's normal safe integer range remain precise.
Does it convert fractions?
No. This tool is for whole integers only.
Related Tools
- PopularAvailableLocal
Color Converter
Convert HEX, RGB, HSL, and other color formats.
- AvailableLocal
Unit Converter
Convert length, weight, temperature, and common units.
- AvailableLocal
CSV to JSON Converter
Convert CSV to JSON and JSON back to CSV.
- AvailableLocal
HTML ↔ Markdown Converter
Convert basic HTML and Markdown in both directions.
- AvailableLocal
Resistor Color Code Decoder
Decode a resistor's color bands.
- AvailableLocal
Subtitle Converter & Synchronizer
Convert SRT, VTT, ASS/SSA, and SBV, and fix subtitles that run early or late.
- PopularAvailableLocal
Percentage Calculator
Calculate percentages, discounts, tax, changes, and totals instantly.
- PopularAvailableLocal
Character Counter
Check text limits, characters, words, reading time, and frequency.
- PopularAvailableLocal
Password Generator
Generate strong passwords with browser cryptography.
- PopularAvailableLocal
UUID Generator
Generate standards-compliant UUID v4 and GUID identifiers individually or in bulk.