Number Base Converter

Convert numbers between bases 2 to 36. Live binary, octal, decimal, hex view plus custom radix. 100% client-side. Private — files stay in your browser.

How to use

  1. Enter a Value — Type a number using digits valid for the source base.
  2. Choose Source Base — Any base from 2 (binary) to 36 (0-9 + a-z).
  3. See Common Bases — Binary, octal, decimal, and hex appear immediately.
  4. Pick a Custom Base — Convert to any other base from 2 to 36.

Frequently asked questions

Why are bases capped at 36?

Bases 2–36 use the digits 0–9 and the letters a–z. Higher bases need extended alphabets that aren't standard.

What about fractional numbers?

This tool converts whole numbers only. Decimal-fraction conversion across arbitrary bases is rarely needed.

Can I convert negative numbers?

Yes for decimal input. Other bases generally express negatives using two's-complement at a fixed bit width — that's a separate use case.

Is the result case-sensitive?

Output for bases above 10 is uppercase by convention. Input is accepted in either case.

What is the largest base supported?

36 — uses 0-9 and A-Z. Higher bases require extra symbols.

How are negatives handled?

Two's complement at the bit width you select. Pick 8/16/32/64.

Can it handle decimal fractions?

Integer only in this tool. For floats, use a programming language directly.

Are these conversions exact?

Yes — pure integer math, no floating-point precision issues.

Is my input stored?

No. Math runs in your browser only.

Free Number Base Converter

Convert positive integers between any pair of bases from 2 to 36. Common bases (binary, octal, decimal, hex) are always shown, with a custom base picker for everything else.

Common Uses

  • Convert hex colors to decimal for math
  • Translate binary flags during debugging
  • Convert IP octets to binary
  • Solve homework across number systems
  • Inspect register values in embedded work

How It Works

Parsing uses JavaScript's parseInt with the source radix and converts via Number.prototype.toString into the target base. Common bases are pre-rendered for one-glance reading.

Privacy

All conversion runs in your browser. Nothing is uploaded.

Related: Binary to Decimal, Hex to Decimal, Hex to Text.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools