Foreman
Help centre

How to export a site diary to CSV for payroll and invoicing

One download per project. Open diary_entries.csv in any spreadsheet and total the hours for payroll or your client invoice.

Updated 6 October 2026 4 min read

To export a project's site diary from Foreman, open the project, tap Download at the top of the page and choose Project data export (zip). You get a ZIP file. Inside it, diary_entries.csv has one row per diary entry with the date, crew member, hours and description, ready to open in Excel, Google Sheets or Numbers.

Admins can export any project. A Site Manager can export the projects they manage. Site Crew can't export.

How to export the diary

  1. Open Projects and tap the project you want.
  2. Tap Download in the top right of the project page. On a phone it shows as a download icon.
  3. Under Export, tap Project data export (zip). It shows "Preparing…" for a moment while the file is built.
  4. Open the downloaded ZIP. It's named after the project and today's date.
  5. Open diary_entries.csv in your spreadsheet app.

The export is a CSV file rather than an Excel workbook. Every spreadsheet app opens CSV files, and they drop cleanly into most payroll and billing tools.

What's in the diary CSV

One row per entry, with these columns:

ColumnWhat it holds
idThe entry's unique ID
entry_dateThe day the entry covers
user_idThe crew member's unique ID
crew_member_nameThe crew member's name
hoursHours as a decimal, to four places
descriptionWhat they wrote
photo_countHow many photos are attached
submitted_atWhen the entry was actually saved

If your business has Geolocation turned on, four more columns are added: latitude, longitude, location_accuracy_m and site_location (on_site, off_site or missing).

There's no project column, because the whole file is for one project.

Reading the hours column

Hours are decimals, so 8h 38m exports as 8.6333. Four decimal places means you can always get back to the exact minute (multiply by 60). A shift that closed itself after 12 hours with no check-out has an empty hours cell, not a zero. Nobody recorded those hours, and a zero would wrongly say nobody worked. A spreadsheet sum skips the blank, and Foreman's own totals leave it out too, so set the real hours in Foreman first and export again before you run payroll.

Using it for payroll and invoicing

The export covers every entry on the project, not a date range. To get one fortnight:

  1. Filter entry_date to the pay or billing period.
  2. For payroll, total hours by crew_member_name. A pivot table does this in a few clicks.
  3. For invoicing a client, total hours for the period. That's the time spent on the job.

Want to check the numbers before you export? Open the project's Site diary and tap View all. You can filter by date range and crew member, and the summary line shows the total entries and hours for what you've filtered.

What else is in the ZIP

The same download includes the rest of the project as separate CSVs: the project details, team, tasks, form submissions, induction register and document list. There's also a README.txt that lists how many rows each file holds. If a section has no data yet, its CSV is still there with just the header row.

Good to know

  • Photos and files aren't in the export. Photos appear as a count. View them in Foreman.
  • Marks like No check-in and Possible duplicate aren't columns. Check for them in the diary before you export.
  • Deleted entries are gone from future exports. Edited entries export with their current values.
  • Archived projects can still be exported.
  • There's no export across all projects at once. Export each project, or ask an AI assistant connected to Foreman for hours across every job. See asking your AI assistant about your site.
  • Foreman records hours, not dollars. Rates and pay are worked out in your own payroll or accounting software.

For how the hours get into the diary in the first place, see logging a site diary entry and check in and check out, or read more about Foreman's site diary.

Frequently asked questions

Can I export the Foreman site diary to Excel?
Foreman exports a CSV file, not an Excel workbook. Open the project, tap Download, then Project data export (zip). Inside the ZIP, diary_entries.csv opens straight in Excel, Google Sheets or Numbers, and you can save it as a workbook from there if you need to.
Who can export a project's site diary?
An Admin can export any project, including archived ones. A Site Manager can export the projects they manage. Site Crew can't export, though they can see their own entries under Site diaries. The export comes from the Download menu at the top of the project page.
Why is the hours cell blank on some rows?
A blank hours cell means a shift closed itself after 12 hours with no check-out, so nobody recorded the real hours. Foreman leaves it empty rather than writing zero or 12. Have a Site Manager or Admin set the hours on that entry in Foreman, then export again.
Can I export hours across all my projects in one file?
Not from the app. The export is one ZIP per project. To pull hours across every job at once, connect an AI assistant such as ChatGPT or Claude to Foreman and ask it, or export each project and combine the CSVs in your spreadsheet.

Fortnightly hours in one download

Every crew member's diary hours for a job, as a CSV your payroll or billing can use. Free for your first project.