Hex to Decimal Converter – Free & Instant Online Tool

Convert hex to decimal instantly in your browser — free, private, no sign-up. Shows binary and octal too. Paste any hex value and get your answer in one

Decimal

255

In every base

Binary11111111
Octal377
Decimal255
HexFF

Converts instantly in your browser — arbitrarily large numbers supported. Prefixes 0b / 0o / 0x and spaces are accepted.

Convert Any Hex Value to Decimal in One Click

Paste or type a hexadecimal value above and get the decimal result instantly — no sign-up, no upload, no waiting. The result also shows the same number in binary and octal so you have everything you need in one place.

How to Use This Hex to Decimal Converter

  1. Type or paste your hex number into the input box (e.g. 1F4). Letters A–F are case-insensitive.
  2. The decimal equivalent appears immediately below — no button press needed.
  3. Need the value in binary or octal too? Those fields update at the same time.
  4. Click the copy icon next to any result to grab it for your clipboard.

Worked Example: Converting 1F4 (Hex) to Decimal

Let's convert the hex number 1F4 step by step. Hexadecimal is base-16, meaning each position is worth a power of 16. Here's how it breaks down:

Hex digitPosition (right to left)ValueCalculation
4044 × 16⁰ = 4 × 1 = 4
F11515 × 16¹ = 15 × 16 = 240
1211 × 16² = 1 × 256 = 256

4 + 240 + 256 = 500 — so 1F4 in hexadecimal equals 500 in decimal.

Quick Reference: Common Hex to Decimal Values

HexDecimalBinaryOctal
A10101012
FF25511111111377
100256100000000400
1F4500111110100764
FFFF655351111111111111111177777
DEADBE1460166211011110101011011011111067652676

How to Convert Hex to Decimal in Code

If you're working in a script or app, these one-liners do the same conversion programmatically.

Python

# Python 3 — pass the hex string to int() with base 16
result = int('1F4', 16)
print(result)  # 500

int() accepts both uppercase and lowercase hex strings. You can also prefix the string with 0x: int('0x1F4', 16).

JavaScript

// parseInt with radix 16 handles the conversion
const result = parseInt('1F4', 16);
console.log(result); // 500

// Or use the 0x prefix directly as a numeric literal
console.log(0x1F4); // 500

For very large hex values beyond JavaScript's safe integer range, use BigInt('0x' + hexString) instead.

How the Converter Works

Every hexadecimal digit (0–9, A–F) maps to a value from 0 to 15. The converter multiplies each digit by 16 raised to the power of its position (starting at 0 from the right), then adds the results. This is pure positional notation — the same math you'd do by hand, just done instantly in your browser.

Because the conversion runs entirely in your browser, your data is never uploaded or stored anywhere. The tool also handles large hex numbers (hundreds of digits) without breaking a sweat.

When to Use a Hex-to-Decimal Conversion (and When Not To)

Good times to use it

  • Debugging hardware or network data — memory addresses, port numbers, and register values are almost always shown in hex.
  • Reading color codes#FF6347 (Tomato red) breaks into three decimal channel values: R=255, G=99, B=71.
  • Working with file formats — magic bytes, offsets, and checksums in binary files are displayed in hex by most editors.
  • Understanding Unicode code points — U+1F600 is the decimal value 128512, which is the 😀 emoji.

When you might need something else

  • If you're working with negative numbers (two's complement), the raw conversion won't give you the signed value — check your platform's word size first.
  • For floating-point hex (IEEE 754 format like 3F800000), a plain hex-to-decimal conversion won't give you the float value — you need a dedicated IEEE 754 decoder.
  • If the hex value has a 0x prefix, just strip it before pasting — the converter expects plain hex digits.

Your Data Stays Private

This tool runs 100% in your browser. No data leaves your device — nothing is sent to a server. You can even use it offline once the page has loaded.

Need to work with other data formats? Check out our JSON Beautifier – Format, Validate & Minify JSON Online to clean up API responses, or the JSON Validator – Check & Fix JSON Errors Online if you're getting parse errors. If you need to trim file size, the JSON Minifier – Compress & Minify JSON Online strips whitespace fast.

The official specification for how positional numeral systems work is covered by the Unicode Standard (for character code points) and is explained in depth on MDN's Hexadecimal reference.

Takeaway: type any hex value above and your decimal answer is ready in an instant — no math, no guesswork.

Frequently asked questions

How do I convert hex to decimal by hand?+
Multiply each hex digit by 16 raised to the power of its position (starting at 0 from the rightmost digit), then add everything together. For example, 1F4: (1 × 256) + (15 × 16) + (4 × 1) = 500. Letters A through F equal 10 through 15.
Does the converter handle the 0x prefix?+
Just strip the '0x' before you paste. The tool expects plain hex digits like 1F4, not 0x1F4. Most tools and languages add '0x' only as a visual hint that the number is hex — it's not part of the value itself.
Is this tool free? Do I need to create an account?+
Completely free, no account or sign-up needed. There's no limit on how many conversions you do.
Is my data uploaded to a server?+
No. The conversion runs entirely in your browser using JavaScript. Nothing you type is sent anywhere, so it's safe to use with sensitive values like API keys or memory addresses.
Can it handle very large hex numbers?+
Yes. The tool isn't limited by JavaScript's normal integer size and can handle hex strings with many digits accurately, which is useful for cryptographic hashes or large memory addresses.
How do I convert hex to decimal in Python?+
Use int('YourHexString', 16). For example, int('1F4', 16) returns 500. Python handles arbitrarily large hex numbers this way with no extra libraries.
How do I convert hex to decimal in JavaScript?+
Use parseInt('1F4', 16) — the second argument tells JavaScript the input is base-16. For numbers larger than Number.MAX_SAFE_INTEGER (9007199254740991), use BigInt('0x1F4') instead to avoid precision loss.
What's the difference between hexadecimal and decimal?+
Decimal is base-10 (digits 0–9) — the everyday number system. Hexadecimal is base-16 (digits 0–9 plus A–F), where a single digit can represent values from 0 to 15. Hex is popular in computing because one hex digit maps neatly to exactly 4 binary bits.