🌐 English

Binary / Hex / Decimal Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Arbitrary size with BigInt, negative numbers, two’s complement and Unicode character view. Free, offline, instant.

  1. Upload
  2. Options
  3. Download

How to: Binary, Hex & Decimal Converter

  1. Enter a number and choose its base (decimal, binary, hex, octal or another).
  2. See every other base instantly, grouped for easy reading.
  3. Optionally pick a bit width to see the two’s-complement form, then copy or download.

Programmers, students and electronics hobbyists constantly move numbers between bases: a colour in hex, a register in binary, a permission mask in octal, a value in decimal. FreePDF’s converter shows all of them side by side the moment you type, handles numbers of any size without precision loss, and adds the views that are usually missing from simple converters – two’s-complement for signed integers, byte counts and the Unicode character a code point represents. All maths happens locally in your browser.

Common uses

Tips for best results

Why computers use binary and hex

Digital circuits have two stable states, so computers store everything as binary digits (bits). Long strings of ones and zeros are hard for humans, so we group them: three bits make one octal digit, four bits make one hexadecimal digit. That is why a byte (8 bits) is always exactly two hex digits, from 00 to FF, and why colours, MAC addresses and memory addresses are written in hex. Decimal remains the base people think in, which is why converting quickly between them matters.

Signed numbers and two’s complement

Computers store negative integers using two’s complement: invert all bits of the positive value and add one. In 8 bits, −1 becomes 11111111 (0xFF) and −128 becomes 10000000. The same bit pattern can therefore mean 255 or −1 depending on whether the type is unsigned or signed. When you choose a bit width the converter shows the stored pattern, its hex form, and how it reads as signed and unsigned, and warns you when a value does not fit in that width.

Converting by hand

To convert decimal to another base, divide repeatedly by the base and read the remainders from bottom to top: 13 ÷ 2 gives remainders 1, 0, 1, 1, so 13 = 1101 in binary. To go back, multiply each digit by the base raised to its position and add: 1×8 + 1×4 + 0×2 + 1×1 = 13. Hex works the same way with base 16, using A–F for 10–15. The tool does this instantly, but knowing the method helps you sanity-check results in exams and interviews.

Why use FreePDF for Binary, Hex & Decimal Converter?

FreePDFTypical upload-based sites
What you type is sent to a serverNo – stays in your browserOften
Sign-up requiredNeverOften for bigger jobs
Hourly / daily task limitsNoneCommon on free plans
Works offline after loadingYes, for most toolsNo

Frequently asked questions

Is there a size limit?

No practical limit. The converter uses JavaScript BigInt, so 256-bit hashes or 100-digit numbers convert exactly with no rounding.

Does it accept prefixes like 0x or 0b?

Yes. 0x for hex, 0b for binary and 0o for octal are stripped automatically, as are spaces, underscores and commas.

How do I convert binary to decimal?

Select “Binary (base 2)” as the input base and type the bits – the decimal value appears at the top of the table.

What is FF in decimal?

255. Each hex digit is four bits, and FF is 1111 1111 in binary.

Can it convert text to binary?

It converts numbers. For a single character, the Unicode row shows the code point, and you can convert that code point to binary or hex.

Is Binary, Hex & Decimal Converter really free?

Yes. Every tool on FreePDF is 100% free with no file limits, no sign-up and no watermarks. The site is supported by unobtrusive ads.

Are my files uploaded to a server?

No. FreePDF processes your files directly in your browser using JavaScript. Your documents never leave your device, so they stay completely private.

Does it work on mobile?

Yes. FreePDF works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux.

Other tools

Unit ConverterLength ConverterWeight ConverterTemperature ConverterArea ConverterData Storage ConverterCM to InchesKG to LBSCelsius to FahrenheitLakh to MillionTime Zone ConverterIST to ESTIST to PSTUTC to IST