Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal. Supports custom bases from 2 to 36. Upload a file for batch conversion. Runs in your browser.

Drop files here or click to browse

Select File

Accepted formats: TXT, PLAINMax file size: 1 MB
Your files are processed entirely in your browser. Nothing is uploaded to any server.

About This Tool

The Number Base Converter converts numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). When converting a single number, you get all four representations at once. Upload a text file with multiple numbers for batch conversion. All calculations use JavaScript built-in parseInt and toString methods for accuracy and run entirely in your browser.

How to Use

  1. 1Select the source base (binary, octal, decimal, or hexadecimal).
  2. 2Select the target base you want to convert to.
  3. 3Enter a number in the source base, or upload a .txt file with one number per line.
  4. 4Click "Process" to convert.
  5. 5For single numbers, you get all four base representations automatically.

When to Use

  • When converting between decimal and hexadecimal for color codes or memory addresses.
  • When working with binary data in programming or networking.
  • When converting octal file permissions in Unix/Linux systems.
  • When studying number systems in computer science courses.

Tips & Tricks

  • Hexadecimal digits use A-F for values 10-15.
  • Prefixes like 0x (hex), 0b (binary), and 0o (octal) are automatically stripped.
  • For a single number, the tool shows all four base representations for convenience.
  • Upload a text file to batch-convert a list of numbers.

Frequently Asked Questions

The tool supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). These cover the most common number systems used in computing and mathematics.

The tool uses JavaScript standard number type, which can accurately represent integers up to 2^53 - 1 (about 9 quadrillion). For most practical purposes, this is more than sufficient.

No. All conversions happen in your browser using JavaScript built-in number parsing and formatting functions.

Related Tools