DataToolsLab
Encoding & Number Bases

Binary / Decimal / Octal / Hex Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal with live preview.

Loading tool…

What is Base Converter?

Programmers frequently need to convert between bases when working with bitmasks, memory addresses, color codes, and bit operations. This converter handles all four common bases.

How it works

We parse the input in its source base using parseInt, then format the output in each target base using toString with the appropriate radix.

  1. Enter your input. Type or paste your input into the field above — the tool responds instantly.
  2. Review the result. Output updates live as you type. Everything runs entirely in your browser.
  3. Copy or download. Use the Copy button to grab the result, or Download to save it as a file.

Examples

Realistic sample

Type or paste any realistic input — the tool computes the result locally and instantly.

Common mistakes

Expecting a server round-trip

Nothing is uploaded — every tool in this category runs entirely in your browser.

Online