In this track: Digital value and units
beginner · 3 MIN READ

Unit conversion practice set

Check the scale, preserve the integer, and verify your result.

LET’S PICTURE IT

Treat each amount like a parcel with a label. Before opening it, check which asset and which measuring unit the label describes.

SEE IT FOR YOURSELF
The same native ether amount shown as ETH, Gwei and WeiETH1× 1 billionGWEI1000000000× 1 billionWEI1000000000000000000

1 ETH = 1000000000 Gwei = 1000000000000000000 Wei.

Same value · different units · native ether only

Exercise one: a small ETH amount

Convert 0.0042 ETH into Wei. Move the decimal eighteen places to get 4200000000000000 Wei. Convert it back before looking at the answer in the tool. The original value should survive the round trip exactly.

Exercise two: a gas-price unit

Convert 15 Gwei into Wei. Multiply by a billion to get 15000000000 Wei. This is a price per gas when used in a fee calculation; you still need the amount of gas to calculate an execution fee.

Exercise three: a token amount

A token uses six decimals and reports a raw amount of 2500000. Its display amount is 2.5 tokens. Do not call that 2.5 ETH unless the asset itself is native ETH, whose scale would be different.

Exercise four: reject a fraction of Wei

Try an ETH input with a non-zero nineteenth decimal digit. An exact whole-Wei converter should explain that the input cannot be represented at that scale. Rejecting unsupported precision is more useful than silently changing the number.

TURN UNDERSTANDING INTO PRACTICEOpen the Wei / Gwei / ETH →
QUICK CHECK · NO PRESSURE

15 Gwei is how many Wei?

Your progress stays in this browser.
Keep exploring the original referenceethereum.org ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.