Map Range, Linear Interpolation and Clamp Calculator
Remap a value from one range to another, or use lerp, inverse lerp, clamp and two-point linear interpolation, with the formula and the working shown.
- Free
- No sign-up
- Works on any device
About Map Range, Linear Interpolation and Clamp Calculator
Four small formulas that appear in games, design tools and data work. Map a value from one range to another with out = outFrom + (value − inFrom)(outTo − outFrom)/(inTo − inFrom), optionally clamped; compute lerp(a, b, t) = a + t(b − a) and the inverse lerp that recovers t; clamp a value between two limits; or interpolate along the straight line through two points. Mapping 5 from 0–10 to 0–100 gives 50.
How to use Map Range, Linear Interpolation and Clamp Calculator
- Choose map, lerp, clamp or two-point interpolation.
- Enter the value and the ranges, or the points, in the visible fields.
- Read the result, the position between 0 and 1 and the formula with your numbers filled in.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
What is the difference between lerp and map range?
Lerp turns a fraction t into a value between a and b. Map range does the full job: it finds t from the input range first, then applies lerp with the output range.
Can the ranges run backwards?
Yes. A reversed range such as 100 to 0 simply flips the direction, so a quarter of the way along maps to 75 instead of 25. Only a zero-width input range is rejected.
What happens outside the input range?
Without clamping the formula extrapolates, so 15 on a 0–10 range maps to 150 on 0–100. Tick the clamp option to stop at the output limits.
Is Map Range, Linear Interpolation and Clamp Calculator free?
Yes. Map Range, Linear Interpolation and Clamp Calculator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.