Volume Converter

Convert between millilitres, litres, cups, pints, gallons and cubic units — with the US and imperial sizes kept apart.

Runs on your deviceConvertersWorkingNo account needed

What this tool does

Volume Converter works from a table of twenty units: millilitre, centilitre, decilitre, litre and cubic metre, alongside teaspoon, tablespoon, fluid ounce, cup, pint, quart and gallon, plus cubic inch, cubic foot and the barrel. Type a bare number and the From and To selects decide the pair. Write the unit into the line instead and the line wins — "500 ml to cups" is read as a whole instruction and overrides both selects. Every line is converted on its own, so a pasted column of amounts comes back as a column of results.

Where one word names two different sizes, a bare unit here means the American one. Pint, quart, gallon, cup and fluid ounce all resolve to the US measure, and the imperial versions must be asked for by name: "1 UK pint to fl oz (UK)", or "imperial gallon". The gap is not small — a US pint is 473.176473 ml against 568.26125 ml for a UK pint. The cup is the messier case, because the table holds the US cup of 236.5882365 ml and a metric cup of 250 ml, while the 284 ml cup of older British cookbooks is not in it at all. Teaspoon and tablespoon are US sizes only, 4.93 ml and 14.79 ml rather than the 5 ml and 15 ml of a metric measuring spoon.

The limit worth knowing before you start is that this converts volume to volume and nothing else. A line reading "1 l to kg" is refused with an unknown-unit message, because mass units are not in this table and a litre of honey does not weigh what a litre of oil weighs. Turning a cooking measurement into a weight needs the density of that particular ingredient, which is the Cooking Converter's job rather than this one's. Cubic yards, the US dry pint and quart, bushels and pecks are absent as well, and Barrel here means the 42-US-gallon oil barrel of 158.987294928 litres, not any of the brewing barrels that share the name. One spelling to avoid: cubic feet have to be typed as "ft³", "cu ft" or the words, because the bare "ft3" is read as a feet-and-inches length and comes back as an unknown-unit error for "ft". The cubic inch and cubic metre have no such trouble — "in3" and "m3" both work.

The arithmetic happens in this browser tab. Your figures are converted by script running on your own machine and none of them are sent anywhere, so an open tab keeps converting after the connection goes. Automatic precision reports ten significant digits and trims trailing zeros, dropping to an eight-digit exponential form such as 1e-9 once a figure reaches a quadrillion or falls below a millionth; the fixed settings round to a chosen number of decimals instead, which is usually what you want when the answer is going into a recipe or a quotation rather than into another calculation.

How to use it

  1. Type the amounts, one per line. A bare number uses the two selects. A full line such as "500 ml to cups" sets both units itself, and fractions parse: "2 1/2 cups" and "½ tsp" are both understood.
  2. Choose the units. From and To list all twenty units with their symbols. US and UK measures appear as separate entries, so pick Pint (UK) when you mean 568 ml rather than 473 ml.
  3. Or expand one value into every unit. Set To to All units (table) and a single input is listed in all twenty units at once — the quickest way to see a volume in metric, US and imperial side by side.
  4. Decide how precise the answer is. Automatic gives ten significant digits. The fixed options are 0, 1, 2, 3, 4, 6 and 8 decimals — 5 and 7 are not offered — and the conversion factor for the last pair converted is shown in the small line under the output box.

Processing & privacy

Runs on your device. Your file is processed directly in this browser.

Common use cases

Cooking from an American recipe

Cup and spoon measures are no help beside a metric jug. "2 1/2 cups to ml" or "500 ml to cups" gives a number you can actually pour or measure into a jug.

Comparing a US and a UK gallon

Fuel economy, tank capacities and drum sizes are quoted in both, and they differ by about a fifth, so the figure means nothing until you know which gallon it is.

Reading a spec sheet in cubic units

Compressor throughput, freight volumes and container ratings arrive in cubic feet or cubic inches. Converting to litres or cubic metres puts them beside the metric numbers.

Converting a whole column at once

Paste a list of measurements, one per line. Each is converted separately and the results come back as a table you can copy into a spreadsheet.

Questions

Does a measurement I paste get uploaded?
No. The conversion runs in this browser tab, so the numbers you enter are not transmitted, logged or stored anywhere. Pull the network out of a tab that is already open and it goes on converting, which is the simplest way to check that; there is no offline cache behind it, so the page itself has to arrive over the network first.
Why does ml to oz not work?
Write "fl oz" rather than "oz". A bare ounce is a unit of weight and is not in the volume table, so the line is refused with a message that suggests the first eight units it does know. "500 ml to fl oz" returns 16.90701135 fl oz — US fluid ounces; ask for "fl oz (UK)" and the same 500 ml is about 17.6 imperial fluid ounces.
Which cup do I get if I just type "cup"?
The US cup, 236.5882365 ml. The metric 250 ml cup is a separate entry you have to select or name, and the 284 ml imperial cup is not included, so a recipe that uses it will need converting by hand.
Can it convert millilitres to grams?
No. That conversion depends on what is in the container — 250 ml of flour and 250 ml of water are nowhere near the same weight — so it needs a density figure per ingredient. Cooking Converter holds those densities; this tool deliberately does not guess one.
How exact are the conversions?
The factors are the defined ones, not rounded approximations: a US gallon is exactly 3.785411784 litres and a UK gallon exactly 4.54609. The results are computed in ordinary double-precision arithmetic, so at ten significant digits the final digit or two can differ from a hand calculation.
What happens to a line that is not a number?
It stops the run and names the offending line, so a stray ingredient name or heading in a pasted list is reported rather than silently skipped or converted as zero.

Related tools