The fuel cost of every driving route, right in Google Maps.
Live fuel prices for Poland and the EU, trips through several countries, electric cars and cost per person.
Add to Chrome · Online calculator · Kalkulator po polsku · Privacy

Tankful is a Chrome extension that adds the estimated fuel cost next to the time and distance of every driving route in Google Maps – no copying numbers into a calculator.

No Chrome, or on your phone? The same calculation works on the website: pick a start and destination, add stops, choose the fuel and the number of people, and share the result as a link.
michalskii.github.io/tankful – with ready pages for popular routes, such as Warsaw to Berlin or Kraków to Split.

No account, no ads and no analytics in the extension. Settings and trip history stay in your browser. To pick country prices, only the start and destination of a route – rounded to about 1 km – are sent to OpenStreetMap Nominatim, and you can turn that off. Fuel prices come from a public price file on the website, built every few hours from the sources above. Details: privacy policy.
Costs are estimates based on average prices and the consumption you enter – prices at the pump vary.
Plain JavaScript, Manifest V3, no build step for the extension. Node.js 22 for the tools and the website.
node tests/test.js # tests
node tools/pack.js # extension package → dist/tankful-<version>.zip
node tools/fetch-prices.js prices.json # download current prices from the sources
node tools/build-site.js prices.json # website → _site/ (needs Chrome for prerendering)
node tools/fetch-routes.js # recompute popular routes (OSRM) → site/src/lib/routes.json
To try the extension from source, open chrome://extensions, turn on Developer mode, click Load unpacked and pick this folder.
| Path | What's there |
|---|---|
manifest.json, background.js | extension manifest; service worker with price downloads and country lookup |
content.js, dom.js, content.css | Google Maps integration: reading routes and showing costs |
settings.js, borders.js | settings, price logic and currencies; EU borders for costing trips by country |
popup.*, history.*, welcome.* | toolbar popup, trip history, welcome page |
_locales/ | English and Polish texts |
site/ | the online calculator (React, Vite, Tailwind, shadcn/ui) |
tools/, tests/ | build, packaging and price scripts; tests |
docs/privacy.html | privacy policy |
The website is deployed to GitHub Pages by .github/workflows/site.yml on every push and every 6 hours, which also refreshes prices.json.
Tankful to darmowa wtyczka do Chrome, która pokazuje koszt paliwa przy każdej trasie samochodowej w Mapach Google: po aktualnych średnich cenach z biuletynu Komisji Europejskiej (Polska i kraje UE) i rządu Wielkiej Brytanii, także na trasach przez kilka krajów, dla aut elektrycznych, tam i z powrotem i na osobę. Do tego historia przejazdów, eksport do CSV i kilometrówka.
Dodaj do Chrome · Kalkulator online · Popularne trasy, np. Warszawa – Kraków
MIT. Tankful is an independent project and is not affiliated with or endorsed by Google.
JavaScript
45.9%
TypeScript
44.8%
CSS
6.4%
HTML
2.9%
The fuel cost of every driving route, right in Google Maps.
Live fuel prices for Poland and the EU, trips through several countries, electric cars and cost per person.
Add to Chrome · Online calculator · Kalkulator po polsku · Privacy

Tankful is a Chrome extension that adds the estimated fuel cost next to the time and distance of every driving route in Google Maps – no copying numbers into a calculator.

No Chrome, or on your phone? The same calculation works on the website: pick a start and destination, add stops, choose the fuel and the number of people, and share the result as a link.
michalskii.github.io/tankful – with ready pages for popular routes, such as Warsaw to Berlin or Kraków to Split.

No account, no ads and no analytics in the extension. Settings and trip history stay in your browser. To pick country prices, only the start and destination of a route – rounded to about 1 km – are sent to OpenStreetMap Nominatim, and you can turn that off. Fuel prices come from a public price file on the website, built every few hours from the sources above. Details: privacy policy.
Costs are estimates based on average prices and the consumption you enter – prices at the pump vary.
Plain JavaScript, Manifest V3, no build step for the extension. Node.js 22 for the tools and the website.
node tests/test.js # tests
node tools/pack.js # extension package → dist/tankful-<version>.zip
node tools/fetch-prices.js prices.json # download current prices from the sources
node tools/build-site.js prices.json # website → _site/ (needs Chrome for prerendering)
node tools/fetch-routes.js # recompute popular routes (OSRM) → site/src/lib/routes.json
To try the extension from source, open chrome://extensions, turn on Developer mode, click Load unpacked and pick this folder.
| Path | What's there |
|---|---|
manifest.json, background.js | extension manifest; service worker with price downloads and country lookup |
content.js, dom.js, content.css | Google Maps integration: reading routes and showing costs |
settings.js, borders.js | settings, price logic and currencies; EU borders for costing trips by country |
popup.*, history.*, welcome.* | toolbar popup, trip history, welcome page |
_locales/ | English and Polish texts |
site/ | the online calculator (React, Vite, Tailwind, shadcn/ui) |
tools/, tests/ | build, packaging and price scripts; tests |
docs/privacy.html | privacy policy |
The website is deployed to GitHub Pages by .github/workflows/site.yml on every push and every 6 hours, which also refreshes prices.json.
Tankful to darmowa wtyczka do Chrome, która pokazuje koszt paliwa przy każdej trasie samochodowej w Mapach Google: po aktualnych średnich cenach z biuletynu Komisji Europejskiej (Polska i kraje UE) i rządu Wielkiej Brytanii, także na trasach przez kilka krajów, dla aut elektrycznych, tam i z powrotem i na osobę. Do tego historia przejazdów, eksport do CSV i kilometrówka.
Dodaj do Chrome · Kalkulator online · Popularne trasy, np. Warszawa – Kraków
MIT. Tankful is an independent project and is not affiliated with or endorsed by Google.
JavaScript
45.9%
TypeScript
44.8%
CSS
6.4%
HTML
2.9%