Volume Converter

Updated: 2026-07-11

🧊 Volume/Capacity Unit Converter

Input:1 Liter
Result:1 Liter

📊 Common Volume Unit Conversion Table

UnitEquals (liters)

📖 Frequently Asked Questions

How many liters in a gallon?

1 US gallon equals 3.78541 liters, and 1 UK (imperial) gallon equals 4.54609 liters. This tool supports both US and UK gallons — make sure to select the correct type. US gallons are used in the United States, while UK gallons are used in the UK and parts of Canada.

How many milliliters in a fluid ounce?

1 US fluid ounce (fl oz) equals 29.5735 milliliters (ml). 1 UK fluid ounce equals 28.4131 milliliters. Note that ounces can be both a weight and volume unit — this tool uses fluid ounces (fl oz) specifically for liquid volume measurement.

How many liters in a cubic meter?

1 cubic meter (m³) equals 1000 liters (L). The full conversion: 1 m³ = 1000 cubic decimeters = 1,000,000 cubic centimeters = 1000 liters. Cubic meters are the standard SI unit for volume used in construction, engineering, and water management.

How many liters in a barrel of oil?

1 standard oil barrel (bbl) equals 158.987 liters (42 US gallons). This is the standard unit for international crude oil trading. In everyday terms, 1 barrel ≈ 159 liters. Note that oil barrels differ from regular liquid barrels in capacity.

How to convert cups to milliliters?

1 US cup equals 236.588 milliliters (ml). The UK cup equals 284.131 milliliters. In cooking and baking, 1 cup is often rounded to 240 ml. Other common conversions: 1 cup = 8 fluid ounces, 1/2 cup = 4 oz, 1/4 cup = 2 oz. This tool provides exact conversions.

document.addEventListener('click',function(e){ if(e.target&&e.target.closest&&e.target.closest('button')){ setTimeout(ftEnsureCopy,250); } }); function ftEnsureCopy(){ var res=document.getElementById('result'); if(!res||res.offsetParent===null)return; if(res.querySelector('.ft-copy-btn'))return; var langEN=/^en/i.test((document.documentElement.getAttribute('lang')||'zh')); var btn=document.createElement('button'); btn.className='btn btn-secondary ft-copy-btn'; btn.textContent=langEN?'📋 Copy Result':'📋 Copy Result'; btn.style.cssText='margin-top:12px;display:block'; btn.onclick=function(){ var txt=(res.innerText||res.textContent||'').replace(/\s+/g,' ').trim(); function toast(m){ var t=document.getElementById('toast'); if(t){t.textContent=m;t.classList.add('show');setTimeout(function(){t.classList.remove('show')},2000)} } if(navigator.clipboard&&navigator.clipboard.writeText){ navigator.clipboard.writeText(txt).then(function(){toast(langEN?'Copied!':'Copy')}).catch(function(){ftFallbackCopy(txt);toast(langEN?'Copied!':'Copy')}); }else{ftFallbackCopy(txt);toast(langEN?'Copied!':'Copy')} }; res.appendChild(btn); } function ftFallbackCopy(txt){ var ta=document.createElement('textarea'); ta.value=txt;ta.style.position='fixed';ta.style.opacity='0'; document.body.appendChild(ta);ta.select(); try{document.execCommand('copy')}catch(err){} document.body.removeChild(ta); } /* Thin-tool enhancement v1 (fillExample + ftChart + ftEnsureCopy) */ (function(){ var langEN=/^en/i.test((document.documentElement.getAttribute('lang')||'zh')); var isZh=!langEN; function toast(msg){var t=document.getElementById('toast')||document.getElementById('copy-toast');if(!t)return;t.textContent=msg;t.classList.add('show');setTimeout(function(){t.classList.remove('show')},2200);} function fallbackCopy(text){var ta=document.createElement('textarea');ta.value=text;document.body.appendChild(ta);ta.select();try{document.execCommand('copy');toast(isZh?'Copy':'Copied');}catch(e){toast(isZh?'CopyFailed':'Copy failed');}document.body.removeChild(ta);} window.ftEnsureCopy=function(){ var res=document.getElementById('result')||document.getElementById('output')||document.getElementById('result-text'); if(!res||res.offsetParent===null)return; if(res.querySelector('.ft-copy-btn'))return; var btn=document.createElement('button'); btn.className='btn btn-secondary ft-copy-btn'; btn.textContent=isZh?'📋 Copy Result':'📋 Copy Result'; btn.style.cssText='margin-top:10px;width:100%'; btn.onclick=function(){ var txt=(res.innerText||res.textContent||'').trim(); if(navigator.clipboard&&navigator.clipboard.writeText){ navigator.clipboard.writeText(txt).then(function(){toast(isZh?'Copy':'Copied');})['catch'](function(){fallbackCopy(txt);}); }else{fallbackCopy(txt);} }; res.appendChild(btn); }; function pushNum(t,arr){var m=t.match(/[\d][\d,]*(?:\.[\d]+)?/g);if(!m)return;m.forEach(function(x){var n=parseFloat(x.replace(/,/g,''));if(!isNaN(n)&&n>0)arr.push(n);});} window.ftDrawChart=function(){ var existing=document.getElementById('ftChart'); if(existing&&existing.parentNode){existing.parentNode.removeChild(existing);} var res=document.getElementById('result')||document.getElementById('output'); if(!res||res.offsetParent===null)return; var nums=[];pushNum(res.textContent,nums); if(nums.length<2)return; var wrap=res.parentNode; if(!wrap)return; var cv=document.createElement('canvas'); cv.id='ftChart';cv.style.cssText='width:100%;max-width:480px;margin-top:14px;background:#1e293b;border-radius:10px'; wrap.appendChild(cv); var ctx=cv.getContext('2d'); var W=cv.width=480,H=cv.height=200; ctx.fillStyle='#1e293b';ctx.fillRect(0,0,W,H); var max=Math.max.apply(null,nums); var barW=Math.max(14,W/nums.length-10); var colors=['#06b6d4','#10b981','#f59e0b','#8b5cf6','#ef4444','#22d3ee']; nums.slice(0,12).forEach(function(n,i){ var bh=Math.max(4,(n/max)*(H-40)); ctx.fillStyle=colors[i%colors.length]; ctx.fillRect(i*(barW+10)+10,H-30-bh,barW,bh); ctx.fillStyle='#94a3b8';ctx.font='11px sans-serif'; var label=n>=1e6?(n/1e6).toFixed(1)+'M':n>=1e4?(n/1e4).toFixed(1)+'w':n.toFixed(n%1===0?0:1); ctx.fillText(label,i*(barW+10)+10,H-18); }); ctx.strokeStyle='rgba(148,163,184,.2)';ctx.beginPath();ctx.moveTo(10,H-30);ctx.lineTo(W-10,H-30);ctx.stroke(); }; window.ftFillExample=function(){ var pairs=[]; var phs=document.querySelectorAll('input[placeholder]'); phs.forEach(function(inp){ var m=(inp.getAttribute('placeholder')||'').match(/([\d]+(?:\.\d+)?)/); if(m&&m[1]){pairs.push([inp.id||inp.name,m[1]]);} }); if(!pairs.length)return; pairs.forEach(function(pair){ var el=document.getElementById(pair[0]); if(el){el.value=pair[1];el.dispatchEvent(new Event('input',{bubbles:true}));} }); toast(isZh?'Try Example':'Example filled'); var btn=document.querySelector('button[onclick]')||document.querySelector('.btn-primary'); if(btn){try{if(btn.onclick)btn.onclick();}catch(e){}} }; document.addEventListener('click',function(e){ if(e.target&&e.target.closest&&e.target.closest('button')){ setTimeout(function(){ftEnsureCopy();ftDrawChart();},280); } }); /* 示例按钮 */ var phs2=document.querySelectorAll('input[placeholder]'); var hasNumPh=Array.prototype.some.call(phs2,function(i){return /[\d]/.test(i.getAttribute('placeholder')||'');}); if(hasNumPh&&!document.getElementById('ftFillBtn')){ var calcBtn=document.querySelector('button[onclick]')||document.querySelector('.btn-primary'); if(calcBtn){ var fb=document.createElement('button'); fb.id='ftFillBtn'; fb.className='btn btn-secondary'; fb.textContent=isZh?'🎲 Try Example':'🎲 Try example'; fb.style.cssText='margin-left:8px'; fb.onclick=function(){ftFillExample();}; calcBtn.parentNode.insertBefore(fb,calcBtn.nextSibling); } } })();