Convert liters to US gallons
Convert liters to US gallons instantly. Type a value below and the result updates as you go.
Convert
Use this tool from AI agents
This tool's engine is available to AI agents over MCP as convert_units. Add the Clean.tools server, then your agent can call it directly.
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --transport http clean-tools https://mcp.clean.tools/mcp{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpOr call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:
curl -s https://api.clean.tools/v1/convert_units \
-H 'content-type: application/json' \
-d '{"category":"length","value":10,"from":"km","to":"mile"}'curl -s https://api.clean.tools/v1/convert_units \
-H 'content-type: application/json' \
-d '{"category":"length","value":10,"from":"km","to":"mile"}'const res = await fetch('https://api.clean.tools/v1/convert_units', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ category: 'length', value: 10, from: 'km', to: 'mile' })
});
const data = await res.json();const res = await fetch('https://api.clean.tools/v1/convert_units', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ category: 'length', value: 10, from: 'km', to: 'mile' })
});
const data = await res.json();Converting liters to US gallons
1 liter equals 0.264172 US gallons, so 10 liters is 2.641721 US gallons. The converter above is preset to liters and US gallons, so you can type any value and read the result instantly. Switch the category or units at any time to convert something else.
The conversion uses exact factors, and everything runs locally in your browser with no data sent to a server. No cost, no signup, no tracking.
Frequently asked questions
How many US gallons are in a liter?
0.264172 US gallons. 1 liter equals 0.264172 US gallons, so 10 liters is 2.641721 US gallons.
Can I convert other units too?
Yes. The tool above handles length, weight, temperature, volume, data, speed, area, and time. Pick a different category or swap the from and to units to convert anything in those groups.
Can I use this from the command line or an AI agent?
Yes. The same converter is a REST endpoint at https://api.clean.tools/v1/convert_units, and it is an MCP server you can add to Claude, Claude Code, or Cursor. The @clean-tools/mcp npm package runs it as a local stdio server.
More conversions
Use Clean.tools from your AI agent
This tool is also convert_units on the Clean.tools MCP server — the same engine, callable by your AI agent directly. No key, no signup: requests are processed in memory and request contents are never stored.
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpEvery tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →