Math Utils

Convert between different number formats used in Starknet: felt, hex, selectors, uint256, and token amounts (ETH, STRK, BTC, USDC, USDT). Click any value to copy it to your clipboard.

Starknet Conversions

Felt(Decimal representation)
Hex(Hexadecimal representation)
Selector(Function selector)
Uint256(Uint256 representation)

Token Conversions

ETH/STRK (from wei)(ETH/STRK from wei)
ETH/STRK (wei)(Wei equivalent)
BTC (from sats)(Bitcoin from satoshis)
BTC (sats)(Satoshis equivalent)
USDC/USDT (from wei)(USDC/USDT from wei)
USDC/USDT (wei)(Wei equivalent)