Unit Converters

Numeral System Converter (Binary, Hex …)

Convert a number between binary, octal, decimal, and hexadecimal.

Number

Settings

Output

Result appears here after you select

{ } How to use

  1. Type the number, optionally with a 0b, 0o or 0x prefix and a leading minus sign.
  2. Pick the base you are in and the base you want — the result updates as you change them.

{ } How it works

Numeral System Converter (Binary, Hex …) works on the text you provide. Adjust the options, then select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Inputs

  • Number — paste or type your input in the left panel (use Sample for an example)
  • From base — choose one — Binary (base 2), Octal (base 8), Decimal (base 10), Hexadecimal (base 16) (default: Decimal (base 10))
  • To base — choose one — Binary (base 2), Octal (base 8), Decimal (base 10), Hexadecimal (base 16) (default: Binary (base 2))

Output

TXT text — copy or download it from the Output panel.

{ } Common uses

  • Read a bitmask, a permission mode or a colour value written in another base.
  • Check a hexadecimal constant from a datasheet against its decimal value.
  • Work out which bits are set in a flags field.

{ } Limitations

  • Whole numbers only. There is no fractional or binary-point support, and a decimal point makes the input invalid rather than being rounded.
  • Above 2^53 the value loses precision, because it goes through a double-precision number on the way. A 64-bit register value pasted in full will come back wrong.
  • Every digit must be valid for the base you chose — a 9 in an octal number, or an F in a decimal one, is reported as invalid rather than skipped. Output digits are uppercase.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

Does it handle negative numbers and two-s complement?

A leading minus sign is understood and carried through as a minus sign. It does not produce a two-s complement bit pattern — for that you need to know the register width, which this tool does not ask for.