Unit Price Comparator Guide
Compare products by unit price so different pack sizes can be ranked on the same scale.
A short companion for Unit Price Comparator: when it is useful, what it expects, and what to check before using the result.
What it does
Compare pack sizes on a level footing. List each product as name, price, quantity and unit, and the page ranks them by price per unit, marking the cheapest in each group. Millilitres and litres, or grams and kilograms, are normalised first, so a 600 ml bottle and a 1.5 litre bottle can be judged against each other.
Use the tool
Open Unit Price Comparator, add the input the tool asks for, run it, and check the output before using it elsewhere.
Input and output
- Input: text.
- Output: text.
- Category: Math.
Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.
Questions
Why does it group by unit?
Price per millilitre and price per gram are not comparable, so each base unit gets its own ranking. Everything with a volume unit lands in one group, everything with a mass unit in another.
What units are recognised?
ml, l, g, kg, m and cm, plus a few spelled-out forms, and pcs and buah for counted items. Write price and quantity as plain numbers, without thousand separators, and separate the four fields with commas.
Is the cheapest always the best buy?
Only on price. Quality, shelf life and how much you will actually use are not in the numbers, so treat the ranking as one input rather than the answer.
Related guide
For broader background, see Calculators and Unit Conversion.