Mode
Result
1Quick reference — common tokens
Token Decimals Explained
ERC20 tokens represent amounts as integers. The decimals value (0–18) defines the scaling. With 6 decimals, 1 token = 10^6 raw units. With 18 decimals, 1 token = 10^18 raw units. USDC uses 6 decimals: 1,000,000 raw = 1 USDC. ETH uses 18: 10^18 Wei = 1 ETH.
This calculator converts raw amounts to human-readable (divide by 10^decimals) and vice versa (multiply). It uses string-based math to handle amounts larger than JavaScript's safe integer limit.
Common Token Decimals
ETH, DAI, UNI, LINK: 18 decimals. USDC, USDT: 6 decimals. WBTC: 8 decimals. Some tokens use 0 (whole units only) or other values. The quick reference on this page shows ETH=18, USDC=6, WBTC=8, DAI=18. When integrating with a new token, always verify its decimals from the contract or documentation.
When to Use This Tool
Use when: reading raw balances from contracts or APIs and need human display; preparing transaction amounts for smart contracts (convert human to raw); debugging token transfer values; or learning how decimals affect token math. Example: 1000000 raw USDC (6 decimals) = 1.0 USDC. Enter 1000000 with 6 decimals to verify.
Frequently Asked Questions
Related Tools
Explore More Tools
Find this tool useful? Buy us a coffee to keep DuskTools free and ad-light.