The arithmetic
One US gallon is exactly 3.785411784 litres. To go from a price per gallon to a price per litre, divide by that number; to go the other way, multiply.
The converter does not change currency. A Canadian price per litre converted to a price per gallon is still in Canadian money.
US gallon, not imperial
The imperial gallon, still mentioned in some countries, is larger than the US gallon. This tool uses the US gallon, the one on US pumps.