home / defi / sqrtpricex96-converterlocal
Uniswap sqrtPriceX96 to Price Converter
Convert Uniswap v3 and v4 sqrtPriceX96 to a human price and tick, and back, with token decimals.
sqrtpricex96-converterready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
defi tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
Uniswap v3 and v4 store price as the square root of token1 per token0, times 2^96, in slot0. To read it you square it, divide by 2^192 and adjust for each token's decimals. This does it with exact integer maths.
02 // how to use it
- Paste sqrtPriceX96 from slot0, or a price to go the other way.
- Enter each token's decimals (token0 has the lower address).
- Press Run.
03 // faq
Why is the price upside down?
It is token1 per token0. For USDC/WETH that is ETH per USDC; the tool shows the inverse too.
What is the tick?
The log base 1.0001 of the raw price, rounded down. Liquidity is placed between ticks.