Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

An ERC-20 amount is a raw integer until you know the token’s decimal scale. To convert it into the quantity people normally read, divide the raw amount by 10d, where d is the decimals value for that specific token. For example, a raw amount of 123456789 represents 1.23456789 tokens when the contract reports 8 decimals.

What an ERC-20 amount actually represents

The ERC-20 transfer function takes its amount as a uint256: an integer expressed in the token’s smallest accounting units. The integer alone does not tell you how many whole or fractional tokens it represents. EIP-20 describes decimals() as the value applications use to scale that amount for human display.

If a token reports d decimals, its nominal token quantity is:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

raw amount ÷ 10d = token quantity

With 8 decimals, the divisor is 100,000,000. Thus, a raw balance of 123456789 converts to 1.23456789 tokens. This is a generic arithmetic example, not a claim about a particular token contract.

#1 Best Overall
Sale
Ledger Nano X - Classic Crypto Wallet with Bluetooth
  • Effortlessly build your crypto portfolio via the all in one Ledger Wallet app: buy, sell, send, receive, swap, stake and more across popular blockchains. 15,000+ coins & tokens in a single dashboard. Keep a close eye on the market. Compare service providers. Track performance. Get timely alerts. Build your portfolio with confidence.
  • Effortlessly build your crypto portfolio via the all in one Ledger Wallet app: buy, sell, send, receive, swap, stake and more across popular blockchains. 15,000+ coins & tokens in a single dashboard. Keep a close eye on the market. Compare service providers. Track performance. Get timely alerts. Build your portfolio with confidence.
  • Enjoy Bluetooth connectivity, iOS access, and hours of battery use with this mobile-first, secure backup signer. Freedom you can depend on.
  • Genuine Check: confirm your signer is authentic during setup with the Ledger Wallet app.
  • Protect your signer: keep it in mint condition at all times with a bespoke Pod or Case to avoid scratches and everyday wear and tear.

How to convert a raw amount into tokens

  1. Identify the exact token contract. Decimals belong to the token’s specific contract; do not infer them from the integer or assume another token uses the same scale.
  2. Obtain its decimals value from a trusted source. EIP-20 defines decimals() as optional, so a contract is not guaranteed to expose that method. If it is available, read the value for the contract on the relevant chain. If it is not, use another trusted source rather than assuming a fallback.
  3. Divide by the corresponding power of ten. For a decimals value of 8, divide the raw amount by 100,000,000; for a value of d, divide by 10d.
  4. Label the result clearly. Distinguish the formatted token quantity from the raw integer so a reader does not mistake atomic units for whole tokens.

The reverse conversion uses the same scale: multiply a user-entered token quantity by 10d to produce the raw integer expected by a transfer. Preserve the exact precision supported by the token’s scale; do not silently round a quantity that cannot be represented as an integer number of atomic units.

Why the scale matters in wallets and payment requests

A payment request can encode a transfer argument as a raw uint256. EIP-681 says the exponent used to express an ERC-20 payment in human-readable units should be the value returned by the token’s decimals(). When a client can retrieve that value from the blockchain or another trusted source, the request should be displayed in the token’s specified units.

Rank #2
Sale
TANGEM Crypto Wallet Pack of 3 – Trusted Cold Storage Hardware Wallet
  • Proven security at scale: Over 9 years and millions of cards issued with no known remote hacks, while military‑grade EAL6+ security keeps your private keys locked inside the chip. Your cryptocurrencies stay strongly protected from online attackers.
  • Tap once to manage your entire crypto wallet across 90 blockchains - no USB cables or Bluetooth, no batteries, no setup. Access 14,100+ coins & tokens, DeFi, NFTs, and staking instantly from your phone
  • Smart backup: Use your second Tangem Wallet as your Backup keys with end‑to‑end encryption; no more papers, pictures. If one card is lost, the remaining can still restore full access, with an optional seed phrase available for advanced users.
  • Engineered to last up to 25 years: Waterproof (IP69K), shockproof and tested for extreme temperatures from −25°C to 50°C. A durable cold wallet with long‑term protection and independently audited security.
  • Trusted by 6 million users worldwide (4.9 App Store, 4.8 Google Play) - buy, sell, swap, stake, and spend cryptocurrency directly. The secure offline storage wallet designed for how people actually use crypto wallets

That guidance matters when checking a balance, entering a payment, or inspecting a transaction request: a raw integer without its unit or verified scale hides its order of magnitude. An interface should show a human-readable quantity using the correct token-specific decimals, or identify the value explicitly as raw atomic units.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What to do when decimals are unavailable

EIP-20 makes decimals() optional; it does not establish a universal fallback when the method is absent. A missing response therefore does not, by itself, tell an application what exponent to use. Avoid presenting an assumed scale as verified. Resolve the value through another trusted source before formatting or preparing a human-facing payment, and make the unit clear if only a raw amount is available.

Rank #3
TANGEM Crypto Wallet Pack of 2 – Trusted Cold Storage Hardware Wallet
  • Proven security at scale: Over 9 years and millions of cards issued with no known remote hacks, while military‑grade EAL6+ security keeps your private keys locked inside the chip. Your cryptocurrencies stay strongly protected from online attackers.
  • Tap once to manage your entire crypto wallet across 90 blockchains - no USB cables or Bluetooth, no batteries, no setup. Access 14,100+ coins & tokens, DeFi, NFTs, and staking instantly from your phone
  • Smart backup: Use your second Tangem Wallet as your Backup keys with end‑to‑end encryption; no more papers, pictures. If one card is lost, the remaining can still restore full access, with an optional seed phrase available for advanced users.
  • Engineered to last up to 25 years: Waterproof (IP69K), shockproof and tested for extreme temperatures from −25°C to 50°C. A durable cold wallet with long‑term protection and independently audited security.
  • Trusted by 6 million users worldwide - buy, sell, swap, stake, and spend cryptocurrency directly. The secure offline storage wallet designed for how people actually use crypto wallets

The standards do not prescribe a particular explorer, wallet, RPC provider, or software library for retrieving decimals. The important checks are that the value belongs to the exact token contract and chain in question and that the application applies that scale consistently when displaying quantities and preparing transfers.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Decimals matter beyond balances

Token scale also matters in more complex token-denominated fields, including option amounts and prices. EIP-7390 explicitly cautions users to be aware of token decimals in the context of vanilla options for ERC-20 tokens. The same principle applies: an integer field is not self-explanatory unless its unit and scale are known.

Quick Recap

Best Value
Trezor Safe 7 Crypto Hardware Wallet with Bluetooth for Android/iOS/Desktop
  • Dual-chip architecture for maximum protection: The next-gen, fully auditable TROPIC01 chip works alongside a certified EAL6+ Secure Element—completely NDA-free—to deliver radically transparent, industry-leading defense against physical attacks.
  • Quantum-ready security: Get protection against future threats with the first-ever hardware wallet designed with quantum-ready architecture.
  • See every detail with confidence: Our largest high-resolution color touchscreen makes it easy to navigate your assets, review transactions and manage your coins with clarity.
  • Wireless freedom with encrypted Bluetooth control: Manage, buy, swap and stake securely using Trezor Suite on desktop or mobile. Qi2-compatible wireless charging keeps your Trezor powered up. No cables required—security meets convenience.
  • Works seamlessly with Android, iOS and desktop: Connect wirelessly or via USB-C to your phone or computer. Manage your crypto anywhere with our companion Trezor Suite app.
Rank #4
DCENT Hardware Wallet | Biometric Cold Storage, Bluetooth, Multi-Crypto
  • EAL5+ CERTIFIED SECURE ELEMENT + FINGERPRINT PROTECTION — Your private keys stay encrypted offline on a certified EAL5+ chip, the same security tier used in EMV bank cards. Built by DCENT, securing crypto since 2018. Fingerprint authentication adds a second layer no PIN-only wallet can match.
  • 10,000+ ASSETS NATIVE ON 100+ BLOCKCHAINS — Hold Bitcoin, Ethereum, XRP, Solana, Cardano, popular stablecoins (USDT, USDC), and NFTs in one wallet. No third-party apps, no fragmented setup — every supported asset works straight out of the box.
  • TAP-TO-SIGN MOBILE EXPERIENCE — Pair your wallet with the DCENT mobile app over Bluetooth. Manage tokens, review transactions, and access in-app swap features directly from your phone — no cables, no desktop required.
  • WEB3 & dAPP ACCESS VIA METAMASK — Connect to MetaMask and other browser extension wallets to manage NFTs, claim airdrops, and access dApps. A large screen and intuitive 4-button interface keep every transaction clearly visible before you sign.
  • SEAMLESS FIRMWARE UPDATES & 30-DAY MONEY-BACK GUARANTEE — Apply security updates without resetting your wallet or migrating funds. Backed by Amazon's 30-day money-back guarantee — your purchase is risk-free.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.