LocalExcelTool
Get started

Mileage log template

Date, route, miles, rate — the deduction total is a formula.

Runs in your browserNo account neededFree

What is Mileage log template

A mileage log is the evidence behind a mileage deduction: one row per trip, with date, from, to, purpose and miles. The deduction is miles × rate, and keeping the rate in its own column is what makes the log defensible when the rate changes mid-year.

This tool needs no input.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

What is recorded

Date, from, to, purpose, miles, rate and deduction, with a totals row. Deduction is =Miles*Rate, and the rate is stored per row rather than in one cell so a mid-year change stays auditable.

Why the sample rate is a placeholder

0.67 is a sample value, not a current figure. Mileage rates change yearly and differ by country, so the file cannot ship the right one for you — type yours into column F and the deductions follow.

When not to use it

When the log has to stand up to an audit on its own. One row per trip with a stated purpose is the minimum; a monthly total per vehicle is not evidence. If you are claiming materially, keep receipts and a calendar alongside. Log the trip the day you make it. A log reconstructed from a calendar at year end is the first thing an auditor questions, and rightly so.

How to use it

  1. 1.Click Generate — the .xlsx is built in your browser.
  2. 2.Open it in Excel, Google Sheets or Numbers.
  3. 3.Replace the sample rows with your own data; the totals recalculate.

How Mileage log template works under the hood

An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.

  1. 1

    Read the file as bytes

    The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.

  2. 2

    Unzip and parse the workbook

    SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.

  3. 3

    Rebuild rows in memory

    Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.

  4. 4

    Write the output locally

    The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.

  5. Processing pipeline

Why formulas arrive as values

A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.

What has no CSV equivalent

Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.

Where it gets slow

Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.

Verify it yourself

You do not have to take this on faith. Run the tool once with DevTools open.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

What exactly is in the mileage log template file?

7 columns (Date, From, To, Purpose, Miles, Rate, Deduction) and 3 sample rows with live formulas. Deduction = Miles × Rate. Keep the rate per row so a mid-year rate change stays auditable.

Is my data uploaded when I download it?

No. The workbook is built by JavaScript in this page from a fixed structure — no file is sent anywhere, and nothing you type later leaves your machine either.

Is 0.67 the right rate for me?

It is only a sample value (the US IRS standard rate for 2024). Rates change yearly and differ by country — check the current figure and type it into column F.

What this kind of conversion cannot keep

Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.

More in Spreadsheets & Docs