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.
Roda inteiramente no seu navegador. Sem chave de API, nenhum dado sai desta página.
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.
Perguntas frequentes
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.
Ferramentas relacionadas
Recarregue, pegue a chave e publique.
Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.
Obter chave de API