Token Decimals Converter
Token Decimals Converter converts ERC-20 human amounts to raw on-chain integers and hex by decimals. Presets for 18, 8 and 6; exact integer math locally.
Calculations and checks on this page run in your browser. Private keys and seed phrases are never uploaded to the server.
About this tool
Token Decimals Converter converts between ERC-20 uint256 integers and human-readable amounts: decimals places the point—for example decimals=6 means 1_000_000 on-chain is 1.0 token.
Before putting amount into calldata or scripts, convert to raw units; wrong digit counts cause order-of-magnitude errors. All math here is integer.
The same ticker can use different decimals per chain (USDT often 6 on Ethereum, 18 on BSC). Always read decimals() on the destination contract.
How to use
- Set decimals or pick a preset.
- Enter a human amount under Token amount to see raw integer and hex.
- Or enter a raw integer to reverse to a readable amount.
- Recheck decimals against the target-chain contract before copying.
FAQ
Where do I find ERC-20 token decimals?
Explorer token overview or Read Contract → decimals(); integrations should read it dynamically rather than hard-code.
Why do decimals differ across chains for the same token?
Each chain is a separate deploy; issuers may choose different decimals. Bridging and transfers must follow the destination contract.
What happens if token decimals are wrong?
Amount error is 10^|Δdecimals|. Treating 6 decimals as 18 can be off by a trillion—failed txs or oversized transfers.
How is this different from ETH Unit Converter?
ETH conversion is fixed at 18 decimals with named units such as Gwei; this tool maps arbitrary ERC-20 decimals between raw and human forms.