Token decimals specify where to place the decimal point when displaying a raw integer amount. With six decimals, 1,234,567 base units displays as 1.234567 tokens. Decimals do not identify the token, set its price or prove that a transfer will succeed.
On this page
Open the exact token decimals converter
What does a token’s decimals value mean?
ERC-20 represents token amounts as integers. Its optional decimals metadata tells a display how many fractional places to use. For decimals d, one display token corresponds to 10ᵈ base units. A contract with six decimals uses a million base units per display token; one with eighteen uses a billion billion.
Decimals is not a measure of a token’s quality, scarcity or investment value. Two contracts can have the same symbol and different decimal settings. A wrapped or bridged version should be checked on its own network and contract.
Example: convert a six-decimal token both ways
Imagine a token with six decimals. To convert 1.234567 display tokens into raw units, multiply by 1,000,000. The exact raw integer is 1,234,567. To go back, divide that integer by 1,000,000.
| Display tokens | Raw base units | Interpretation |
|---|---|---|
| 1 | 1000000 | One display token |
| 0.000001 | 1 | One base unit |
| 1.234567 | 1234567 | Exactly representable |
| 0.0000001 | Not a whole base unit | Cannot be represented exactly |
The final row is not safely “fixed” by silently rounding. A tool should make the precision problem explicit so the user can decide what amount they actually intend. Crypto.tt rejects extra fractional digits; it does not choose a different amount for you.
Example: preserve a large 18-decimal amount
Raw 9007199254740993123456789 with 18 decimals displays as 9007199.254740993123456789. Convert the display value back and every raw digit should match. Use the converter’s large-amount example to check that round trip.
JavaScript’s Number type cannot represent every integer above 9,007,199,254,740,991 exactly. Converting a long raw integer to Number before processing can already lose information. The converter keeps input as text, uses BigInt for the integer and inserts the decimal point directly. It never rounds through a floating-point balance.
How to verify decimals before using the converter
- Identify the intended network and exact contract address from trusted project documentation.
- Find the contract’s decimals metadata through appropriate official documentation or explorer contract information.
- If the method or documentation is missing, do not infer 18 from the ERC-20 label. The standard marks decimals as optional.
- Enter that explicit number in the converter and compare its display amount with the source you are reviewing.
- Verify the destination, network and wallet preview separately before any real action elsewhere.
The converter intentionally performs no contract discovery. A numerically correct conversion can still refer to the wrong token. The transfer checklist helps keep identity, network and amount checks distinct.
How to preserve exact digits in a spreadsheet
Download the worksheet only when you need a local record. Import the raw-amount and display-amount columns as text. Opening a CSV directly in a spreadsheet can trigger automatic numeric conversion or scientific notation, and quoting a CSV field does not force text handling in every program.
Compare the imported value with the converter character for character, especially its final digits. Do not use a rounded spreadsheet value as an exact transaction amount.
Can I reopen an exact token worksheet?
Yes. Download the converter’s exact JSON format, then use Reopen an exact JSON worksheet in the batch section. The file is read locally, and raw/display values are checked before loading. Review the loaded decimals and raw amounts, then calculate again. A single-amount JSON file can be reopened as a one-row batch. The tool does not upload the file.
Common questions
Do all tokens use eighteen decimals?
No. Enter the value for the specific token contract. This tool accepts the metadata type’s range of 0–255, but that range says nothing about any particular token.
Are token base units always wei?
No. Wei is a native ETH denomination. “Base units” avoids assigning that name to every ERC-20 token. For ETH, SOL or XRP native units use the native-unit converter.
Does changing decimals change the amount on-chain?
Entering another decimals value changes this calculator’s interpretation of the raw integer. It does not change a contract, a balance or a transfer.
Does a successful conversion prove that a transfer is valid?
No. Balances, permissions, contract restrictions, network choice and the recipient still need separate checks. This tool never submits a transfer.
Practise before trusting the output
Convert 42 tokens with zero decimals, then one base unit with eighteen decimals. Finally try 0.0000001 with six decimals and explain the rejection. The number lab includes two related exercises and a downloadable classroom version.
Sources and review
Technical references reviewed 29 November 2026. Examples and exercises are original Crypto.tt educational material.