home / tokens / token-decimals-converterlocal
Token Decimals Converter
Turn a human token amount into raw on-chain units, or the reverse. USDC uses 6 decimals, most tokens use 18.
token-decimals-converterready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
tokens tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
ERC-20 contracts store balances as integers. The token's decimals value says where the decimal point goes. 25.5 USDC (6 decimals) is stored as 25500000. Getting this wrong by one place is a classic bug, so check it here.
02 // how to use it
- Enter the amount.
- Enter the token's decimals (you can read it from the token contract's decimals() function).
- Choose the direction and press Run.
03 // faq
What are the common decimals?
ETH and most ERC-20 tokens use 18. USDC and USDT use 6. WBTC uses 8.
Where do I find a token's decimals?
Call decimals() on the contract, or check a block explorer's token page.