Number Base Converter

Runs in browser

Convert numbers between binary, octal, decimal, and hex instantly.

Convert numbers between binary, octal, decimal, and hexadecimal instantly in your browser. Free base converter online.

Number Base Converter tool

Padded binary (32-bit, unsigned): 00000000000000000000000000101010

ASCII (32–127): "*"

🔒 Runs in your browser · No uploads · Your data never leaves your device

How to use

  1. Enter a value

    Type a number into any base field (binary, octal, decimal, or hex).

  2. See conversions update

    All other fields update instantly as you type.

  3. Fix invalid input

    If the input contains invalid digits for that base, the field will show an error.

Common use cases

  • Reading hex values from a network dumpConvert hexadecimal byte values to decimal to understand packet data, error codes, or color values.
  • Debugging bitmask operationsConvert between binary and decimal to verify bitwise AND/OR operations and understand flag combinations.

Examples

  • Convert 42

    Decimal 42 becomes 101010 (bin) and 2A (hex).

    Input
    42
    Output
    bin=101010, oct=52, dec=42, hex=2A

Frequently asked questions

Does this tool support negative numbers?
This converter focuses on unsigned integers. For signed formats, convert the absolute value and apply your representation rules.
Is conversion done on a server?
No. Everything runs locally in your browser.

Key concepts

Binary (base 2)
A number system using only 0 and 1 — the fundamental representation of data in computers.
Hexadecimal (base 16)
A number system using digits 0–9 and A–F, commonly used in programming to compactly represent binary values.

You might find these useful too.

More encoding tools