Hex to Decimal Converter
EVM JSON-RPC returns integers hex-encoded with a 0x prefix. This converter turns those hex strings into base-10 decimals so you can read block numbers, gas amounts and wei balances at a glance. It runs entirely in your browser with no API key and no network call.
Enter a non-negative integer. Hex is prefixed 0x; parsing accepts values of any size.
Runs entirely in your browser. No API key, no data leaves this page.
Why RPC responses are hex
Ethereum and other EVM chains encode quantities as hexadecimal strings prefixed with 0x. A block number like 0x11a4c78, a gas value like 0x5208, or a wei balance are all returned this way. Hex to decimal conversion is the first step to making these values human-readable. Because balances in wei can exceed 2^53, treat them as big integers rather than JavaScript numbers to avoid precision loss.
Reading 0x5208
The canonical example is 0x5208, which converts to 21000, the exact gas cost of a plain ETH transfer. Seeing 0x5208 in a transaction's gas field tells you it is a simple value transfer with no contract call.
Frequently asked
Do I need to strip the 0x prefix first?
No. Paste the value with or without the leading 0x; the converter handles both. The 0x is just a marker that the digits are hexadecimal.
Is my data sent anywhere?
No. The conversion happens entirely in your browser using local arithmetic. Nothing is uploaded and no API key is required.
Related tools
Top up, get a key, ship.
Self-serve. Pay in crypto or card. Metered by credits — heavy primitives cost more, simple ones are cheap.
Get API key