Hex to Decimal

A hexadecimal value read straight back as a decimal number.

FREE - NO SIGN-UP - RUNS ON YOUR DEVICE

Hex values never leave your browser

  • Hex → Decand two more bases
  • Liveno button to press
  • 0values uploaded
  • Freeno sign-up
In practice

What you can count on

  • 1setting
    • The input base, set to hexadecimal
    • Everything else follows from it
  • 4readings
    • Decimal arrives with binary and octal
    • One entry drives all of them
  • 0uploads
    • The value is read in your tab
    • Nothing is sent or stored
Specification

Hex to Decimal at a glance

Input base
Hexadecimal
Accepted values
Whole values, zero or above
Output
Decimal, binary and octal
Reverse
Decimal in, hexadecimal out
Processing
Runs locally in your browser
Bases and size
Base 2/8/10/16, any length
Price
Free
Account required
No
How to

How to use Hex to Decimal

  1. 1

    Set the base to hex

    Choose hexadecimal as the input base so A to F count as digits rather than mistakes.

  2. 2

    Enter the value

    Type or paste a whole value of zero or above. The readings recalculate as it lands.

  3. 3

    Read the decimal

    The decimal line is filled in below. Copy result saves all four readings together.

Questions

Frequently asked questions

Do I get binary and octal as well?

Yes. The four readings share a single entry, so binary and octal are on screen the moment the decimal one is.

What values can I enter?

Whole values of zero or above. A sign or a fractional part is outside what the panel is set up to read.

Is the value sent anywhere?

No. Reading a base is arithmetic the browser handles by itself, so the value stays in the tab and is not stored.

How do I get hexadecimal from a decimal number?

Change the input base to decimal and type the number. The hexadecimal line then holds the answer, with no other setting to change.

Can I paste a value that starts with 0x?

Yes. A leading 0x is stripped before the digits are read, so pasting 0xFF straight from code works without editing it first.

Background

What a hexadecimal reading means

Hexadecimal digits run from 0 to 9 and then A to F. Choose hexadecimal as the input base, enter a whole value, and the decimal reading is already filled in below.

  • Hexadecimal and decimal are two ways of writing the same value, not two different numbers.
  • The input base is what tells the panel how to read the characters you typed.
  • Because all four lines share one entry, comparing bases takes no extra step.
  • The panel takes whole values, so anything after a point has no meaning here.

Full specification

Specification of the Hex to Decimal tool
Input baseHexadecimal, so digits from zero to nine and A to F are read as one value.
Accepted valuesWhole values of zero or above. Signs and fractional parts are outside what the panel reads.
OutputThe decimal reading, shown at the same time as the binary and octal ones.
ReverseSet the input base to decimal and the hexadecimal line becomes the answer instead.
ProcessingAll calculations run locally in the current browser tab.
Bases and sizeInput base is 2, 8, 10 or 16 — no base 32 or 36. Whole numbers of any length stay exact, past the 53-bit limit.
PriceFree
Account requiredNo
Next step

Keep going with the same files

All convert tools: Convert tools on SPOTTOOLS