The developer tools you reach for every day, all in one place.

Converters, formatters, hashes, validators, and the small utilities you keep reopening stay together instead of getting lost across tabs.

GitHub

/ Tools

/ Tool Finder
109 tools
/ Token Decimals Converter
Number of decimal places (0-77). Common: 18 for ETH, 6 for USDC
Human Readable → Raw
Raw → Human Readable
/ Selected Tool

Token Decimals Converter

Convert between human-readable amounts and raw token amounts

01

What are Token Decimals?

Most tokens store amounts as integers without decimal points. The 'decimals' value determines how many digits represent the fractional part. For example, with 18 decimals, 1.5 tokens = 1500000000000000000 raw units.

02

How does it work?

Common Decimal Values 18 decimals: ETH, DAI, WETH, most ERC-20 tokens 6 decimals: USDC, USDT 8 decimals: WBTC (like Bitcoin) 0 decimals: NFTs, whole number tokens

03

Sample Cases

Covers 1 ETH (18 decimals), 1 USDC (6 decimals), and 0.5 tokens (18 decimals) so you can compare common inputs and outputs quickly.

/ Code

/ Integration

Source code from the selected tool, shown here alongside the live version on the right.

/ Source Code
TypeScript
typescript
// npm install viem

import { parseUnits, formatUnits } from 'viem';

// Convert human-readable to raw (wei-like units)
const humanAmount = "1.5";
const decimals = 18;

const rawAmount = parseUnits(humanAmount, decimals);
console.log("Raw amount:", rawAmount);
Buidl Now icon

Keep every utility in one place and stay inside the build flow.

Pick a tool, finish the check, copy what you need, and get back to the actual product work.

Developer tools for builders who ship fast.© 2026 Buidl Now. All rights reserved.