Hex to Decimal

Bulk hex to decimal converter

Paste up to 5,000 hex values. Lines, commas, spaces and tabs all work as separators.

Decimal values

Results

#InputHexDecimal

How to convert a list of hex values

  1. Paste the hex values into the left box. Lines, commas, spaces and tabs all work as separators, so a column copied from a spreadsheet or a comma-separated log line both work without reformatting.
  2. Choose Unsigned or a signed bit width (8, 16, 32 or 64) from the "Read as" dropdown. Unsigned treats every value as positive. A signed width reads the value as two's complement at that width, so FF in signed 8-bit mode gives −1 instead of 255.
  3. Read the decimal values in the right box, or scroll the results table to see the input, cleaned hex and decimal side by side.
  4. Click Copy results to copy the decimal column, or Download CSV to save all three columns as a file.

The tool handles values of any length. A 20-digit hex string keeps every decimal digit because the converter uses BigInt arithmetic, not floating-point numbers.

Accepted input formats

The converter strips common prefixes and formatting before parsing, so values copied from code, logs, colour pickers and debuggers work without editing.

InputCleaned hexDecimal
FFFF255
0xFFFF255
#C0FFEEC0FFEE12648430
1A2Bh1A2B6699
DEAD_BEEFDEADBEEF3735928559
0x00ff00FF255

Upper and lower case are treated the same. The Hex column keeps leading zeros, and they never change the decimal result. A value that contains characters outside 0–9 and A–F (after prefix removal) appears as an error row and does not block the rest of the list.

Signed mode

Switch from Unsigned to a signed width when the hex values represent two's complement integers. Hardware registers, sensor readings and protocol fields are often signed, and the same hex produces a different decimal depending on the bit width.

HexUnsignedSigned 8-bitSigned 16-bitSigned 32-bit
FF255−1255255
80128−128128128
FF9C65436Wider than 8 bits−10065436
FFFFFFFF4294967295Wider than 8 bitsWider than 16 bits−1

A value wider than the chosen bit width shows an error instead of a wrong number. For a single value with the full bit-level breakdown, use the signed hex to decimal converter.

Type one hex value to see all five readings at once. The page tool applies the one you choose in "Read as" to the whole list.

Working with the CSV

The Download CSV button saves a file with three columns: the original input, the cleaned hex and the decimal result. Open the file in Excel, Google Sheets or any spreadsheet to filter, sort or chart the values. Error rows keep their status in the decimal column, so they are easy to find and remove.

The CSV uses double-quoted input and decimal fields and standard line endings, so it works in every spreadsheet application without an import wizard.

Bulk conversion in code

For automated pipelines, convert a list in one line of code.

Python

values = ["FF", "1A2B", "DEADBEEF"]
print([int(v, 16) for v in values])
# [255, 6699, 3735928559]

JavaScript

const values = ["FF", "1A2B", "DEADBEEF"];
console.log(values.map(v => parseInt(v, 16)));
// [255, 6699, 3735928559]

Excel

Put the hex values in column A and type =HEX2DEC(A2) in B2, then drag the fill handle down. For values longer than 10 hex digits, use =DECIMAL(A2, 16) instead. See hex to decimal in Excel for the full guide.

Frequently asked questions

How many values can the bulk converter handle?
Up to 5,000 values in one paste. The results table shows the first 1,000 rows, but the copy and CSV output include every converted value.
Does the converter send my data anywhere?
No. Everything runs in the browser. The hex values never leave your device, so log files, memory dumps and proprietary data stay private.
How do I convert a CSV column of hex values?
Copy the hex column from the spreadsheet, paste it into the converter, and download the result as a new CSV. Or use the Excel formula =HEX2DEC(A2) directly in the spreadsheet. Both approaches produce the same decimal values.
What happens to invalid entries?
Each invalid value gets its own error row, and the rest of the list still converts. The error message names the problem: "Not hex" for characters outside 0–9 and A–F, or "Wider than N bits" for a value that exceeds the chosen signed width.
Can I convert hex to decimal in bulk with Python?
Yes. A list comprehension converts every value in one line: [int(v, 16) for v in hex_list]. For signed values, subtract 2ⁿ when the top bit is set, or use ctypes for a fixed-width cast. See hex to decimal in Python for details.