px ⇄ rem & clamp()
Convert px and rem and generate fluid clamp() sizes.
About the px ⇄ rem & clamp()
Type one pixel size per line and get each as rem, using whatever base size you set. The first and last lines also define a fluid range: the tool outputs a clamp() expression that scales smoothly between the minimum and maximum viewport widths, so headings grow with the screen without media queries.
Tip: Put the smallest size on the first line and the largest on the last. The defaults of 375px and 1280px suit phones to laptops; widen the maximum viewport if you want the text to keep growing on big monitors.
px ⇄ rem & clamp() is free, needs no sign-up and runs entirely in your browser, so what you paste never leaves your device.
How to use it
- Paste or type your input, or press Ctrl+V anywhere on the page.
- Adjust the options. The result updates instantly.
- Copy the output with the Copy button or Ctrl+C.
Topics
- px
- rem
- clamp
- fluid
- typography
Frequently asked questions
Is the px ⇄ rem & clamp() free to use?
Yes. The px ⇄ rem & clamp() is completely free, needs no account and has no usage limits.
Is my data uploaded when I use the px ⇄ rem & clamp()?
No. Everything is processed locally in your browser, so what you paste never leaves your device. The last 3 snippets are kept on this device only and you can clear them with one click.
How do I use the px ⇄ rem & clamp()?
Paste or type your input, or press Ctrl+V anywhere on the page. Results update instantly, then copy them with the Copy button or Ctrl+C.