🇬🇧EN

Base Converter

Convert numbers between binary, decimal, hexadecimal and octal — instantly.

—Binary
—Octal
—Decimal
—Hexadecimal

✨ What do you want to try next?

You've finished this tool — here are a few you might find useful.

Explore 100+ free toolsPDF, Image, Text, Convert, Calculate and more — all free.View all tools →

About the Base Converter

This converts a whole number between the four number bases programmers use — binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) — showing all four at once. It's an everyday helper for developers reading memory addresses, colour values, bitmasks, file permissions or byte values, and for students learning how number systems work. Enter a value, pick its base, and see the equivalents instantly.

How it works

Your input is validated against the digits allowed in its base (only 0–1 for binary, 0–7 for octal, 0–9 for decimal, 0–9 and A–F for hexadecimal), then parsed to an ordinary integer and re-expressed in each base. Hexadecimal is shown in upper case. It converts the moment you type — no button needed — and flags input that isn't valid for the chosen base.

Assumptions and behaviour

  • Works on non-negative whole numbers (integers).
  • Hexadecimal digits can be entered in upper or lower case; output hex is upper case.
  • Whitespace in the input is ignored, so you can paste spaced or grouped digits.
  • All four representations update live from whichever base you enter.

Limitations

  • No fractions or negative numbers. It converts whole, non-negative integers; it doesn't handle decimal points (like binary fractions) or signed/two's-complement values.
  • Very large numbers lose accuracy. Values beyond the safe integer range (about 9 quadrillion, 2⁵³) can't be represented exactly in JavaScript, so the tool stops rather than showing a wrong answer — split very large values or use a specialist big-integer tool.
  • It handles the four common bases (2, 8, 10, 16), not arbitrary bases like base 36.

Privacy

The conversion runs entirely in your browser. Nothing is uploaded or stored.

Frequently asked questions

Is this base converter free?

Yes — free, no sign-up, no limits, runs in your browser.

Which bases does it support?

Binary (2), octal (8), decimal (10) and hexadecimal (16). Enter a value in any one and see all four at once.

What is 255 in hexadecimal?

FF. And 255 in binary is 11111111 — a single byte with all bits set.

Can it convert negative numbers or fractions?

No. It handles non-negative whole numbers only — no decimal points or signed/two's-complement values.

Why won't it convert a very large number?

Beyond about 9 quadrillion (2⁵³), JavaScript can't hold integers exactly, so the tool stops rather than show an inaccurate result.

Can I enter hex in lower case?

Yes. Hex digits a–f can be typed in upper or lower case; the output is shown in upper case.

Is my data uploaded?

No. Everything runs locally in your browser; nothing is sent or stored.

Lakshay Kumar

Written by Lakshay Kumar(TechLakshay)

A QA Automation Engineer by trade, Lakshay's real passion is untangling complex problems into simple, working solutions — which is exactly why FreeMyTask exists. On Instagram, he channels that same instinct into helping 26,000+ content creators with SEO education, motivation, and hands-on query solving.

Last updated: August 22, 2026
🎁