How to convert a list of hex values
- 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.
- 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.
- Read the decimal values in the right box, or scroll the results table to see the input, cleaned hex and decimal side by side.
- 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.
| Input | Cleaned hex | Decimal |
|---|---|---|
FF | FF | 255 |
0xFF | FF | 255 |
#C0FFEE | C0FFEE | 12648430 |
1A2Bh | 1A2B | 6699 |
DEAD_BEEF | DEADBEEF | 3735928559 |
0x00ff | 00FF | 255 |
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.
| Hex | Unsigned | Signed 8-bit | Signed 16-bit | Signed 32-bit |
|---|---|---|---|---|
| FF | 255 | −1 | 255 | 255 |
| 80 | 128 | −128 | 128 | 128 |
| FF9C | 65436 | Wider than 8 bits | −100 | 65436 |
| FFFFFFFF | 4294967295 | Wider than 8 bits | Wider 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?
Does the converter send my data anywhere?
How do I convert a CSV column of hex values?
=HEX2DEC(A2) directly in the spreadsheet. Both approaches produce the same decimal values.What happens to invalid entries?
Can I convert hex to decimal in bulk with Python?
[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.Related tools
- Hex to Decimal Converter — convert a single hex value with digit-by-digit steps
- Hex to Decimal in Excel — HEX2DEC and DECIMAL formulas for spreadsheets
- Signed Hex to Decimal — two's complement at any bit width
- Hex to Decimal Table — lookup table for quick reference