Token Decimals Converter
Use this token decimals converter to switch between a token's human-readable amount and its raw integer on-chain value with any decimals setting.
Example Usage
- Convert 1.5 USDC into raw units with 6 decimals.
- Format a raw ERC-20 balance into a readable token amount.
- Check token math before building a transaction or quote flow.
Token Decimals Converter Explained
A token decimals converter helps you move between what users see and what smart contracts actually store. ERC-20 style tokens use integer values on-chain, while wallets and UIs usually show decimal amounts. By entering a token amount and decimals value, you can convert it into the raw integer needed for contract calls. By entering a raw integer, you can turn it back into a readable balance. This is useful when preparing transfers, quoting balances, checking API responses, or debugging frontend token math. It saves time and helps avoid mistakes caused by manual decimal shifting.
FAQ
Why do tokens use decimals?
Because smart contracts store integer values, and decimals tell apps how to display those integers as user-friendly amounts.
Is 18 always the correct decimals value?
No. Many tokens use 18, but others like USDC use 6, so you must use the token's actual decimals.
Can this help with contract input preparation?
Yes. The raw integer output is the value you typically pass into contract calls.
Related Tools
EVM Address Checker
Validate Ethereum and EVM addresses, including checksum formatting.
EVM Checksum Converter
Convert an EVM address into its EIP-55 checksum format instantly.
Wei Eth Converter
Convert between wei, gwei, and ETH amounts instantly.
Gas Fee Calculator
Calculate total gas cost from gas limit and gas price inputs.
Transaction Decoder
Decode raw signed EVM transactions into readable fields instantly.