Converter tool

Timesheet Hours from CSV

Add worked hours, overtime and a status to every row of a timesheet CSV, with break deductions, overnight shifts and totals per person.

Times must look like 17:30 or 17:30:00 (a trailing AM or PM is also read). Rows with a time the tool cannot read keep their data, get blank hours and are listed by row number. The CSV is parsed by this browser tab.

Preview

Output Preview

Load a timesheet, check the start and end columns, and press Calculate hours.

Timesheet Hours from CSV

Operator: Abdulla Al Fahad. How tools are built and checked

A week of clock-in and clock-out times exported from a punch clock, a shared sheet or a scheduling app usually arrives as two columns of times and nothing else. Before payroll can run, someone has to turn 07:50 and 18:20 into a number of hours, take off the unpaid lunch, notice that the night porter's shift crossed midnight, and split anything past the daily limit into overtime.

Timesheet Hours from CSV does that arithmetic for every row at once. You point it at the start column and the end column, optionally at a break column in minutes, a person column and a date column, and it appends three columns to your original data: hours, overtime and status. A separate table adds the hours and overtime up per person, and both the rows and the totals download as CSV.

Key features

  • Start, end, break, person and date columns chosen from the file's own headers, with a first guess from names like clock_in or finish
  • Overtime threshold per row that you set, from 0 to 24 hours
  • Overnight shifts: an end time before the start time adds 24 hours, or is reported when you turn the option off
  • Unpaid break in minutes subtracted from each row
  • A status column on every row: ok, overnight, overtime, check date, or the reason a row could not be calculated
  • Totals per person with row count, distinct days, hours and overtime, plus a grand total
  • Two downloads: the original rows with the new columns, and the totals table

Clock formats, breaks and the added columns

Times are read as a 24-hour clock in the form HH:mm or HH:mm:ss, so 7:45, 07:45 and 07:45:00 are all accepted. A trailing AM or PM switches that cell to a 12-hour clock, so 6:30 pm is read as 18:30 and 12:15 am as 00:15. 24:00 is accepted as an end time meaning midnight at the end of the day. Anything else, including 9.00, 0930, 9h30 or a full date-time such as 2026-11-02 07:45, is reported as unreadable rather than guessed at.

The break column holds whole or decimal minutes, such as 30 or 22.5. An empty break cell counts as no break. The date column, when you choose one, must be YYYY-MM-DD and is used to count distinct working days per person; a bad date is flagged in the status column but the hours on that row are still counted, because the times themselves were readable.

The three new columns are named hours, overtime and status. If your file already has a column with one of those names, the new one gets a suffix such as hours_2 so nothing is overwritten. Hours and overtime are decimal hours with two places (8.25 means eight hours and fifteen minutes), so the column can be multiplied by an hourly rate without converting minutes first.

How it works

For each row the tool converts the start and end cells to seconds after midnight. If the end is later than the start, the difference is the shift length. If it is earlier and overnight shifts are on, 24 hours are added; if they are off, the row is marked as an error. Equal start and end times are also marked, because a zero-length shift and a full 24-hour shift look identical in the data.

The break is then subtracted. A break as long as the shift or longer is treated as a typing mistake and reported. Overtime is whatever remains above the threshold. Rows that fail any check keep all their original cells, get blank hours and overtime, and carry a status beginning with error: followed by the reason, so you can filter them in a spreadsheet after the download.

Common use cases

  • A café owner exports a week of punch-clock times and needs hours per barista, with the 30-minute unpaid lunch removed, before entering pay.
  • A care home rota has night staff starting at 21:00 and finishing at 07:00; the tool counts those as ten-hour shifts instead of negative fourteen.
  • A site supervisor wants every shift over ten hours flagged for a fatigue review, so sets the threshold to 10 and filters the status column for overtime.
  • A bookkeeper checks a contractor's invoiced hours against the timesheet they submitted, row by row.

How to use this tool

  1. Choose your timesheet CSV, or load the sample timesheet to see the columns the tool expects.
  2. Check the start and end columns. Set the break, person and date columns if your file has them.
  3. Set the overtime threshold. Leave overnight shifts on unless your file never crosses midnight.
  4. Press Calculate hours and read the totals table and the list of rows to check.
  5. Download the rows CSV for payroll import and the totals CSV for a quick summary.

Example

Six rows from a two-day sheet (threshold 8, overnight on)

employee,date,clock_in,clock_out,break_min
Rosa Dlamini,2026-11-02,07:45,16:15,30
Rosa Dlamini,2026-11-03,07:50,18:20,45
Tomasz Wilk,2026-11-02,22:00,06:30,30
Tomasz Wilk,2026-11-03,21:55,06:05,
Priya Nair,2026-11-02,09:00,13:00,0
Priya Nair,2026-11-03,9.00,17:30,30

New columns and per-person totals

hours,overtime,status
8.00,0.00,ok
9.75,1.75,overtime
8.00,0.00,overnight
8.17,0.17,"overnight, overtime"
4.00,0.00,ok
,,"error: start time ""9.00"" is not HH:mm"

Priya Nair: 1 row, 4.00 hours
Rosa Dlamini: 2 rows, 17.75 hours, 1.75 overtime
Tomasz Wilk: 2 rows, 16.17 hours, 0.17 overtime

Tips for best results

  • If the person column has stray spaces or different spellings (Rosa Dlamini and R. Dlamini), they become separate totals. Clean the names before running.
  • Set the threshold to 0 to make the overtime column equal the hours column, which is a quick way to total hours without any overtime split.
  • For a weekly overtime rule, use the totals table: the per-person hours are the weekly figure when the file holds one week.
  • Times written with a dot, such as 9.00, are common in hand-typed sheets. Replace the dots with colons in the time columns before running.

Common pitfalls

The rounded hours column does not always add up to the total. Three shifts of 8 hours 10 minutes each show 8.17 on every row, which sums to 24.51 by hand, but the totals table adds the exact minutes and shows 24.50. Pay from the totals, or from minutes, rather than summing the rounded column.

Overtime here is per row, not per day or per week. A worker with a split shift recorded as two rows of five hours gets no overtime from this tool even though the day came to ten. Merge split shifts into one row first, or apply your daily rule to the totals yourself.

The tool cannot tell a genuine overnight shift from swapped columns. If a day worker's row reads start 17:00 and end 09:00, overnight mode returns 16 hours. Rows counted as overnight say so in the status column; scan them for anything that does not belong.

Shifts longer than 24 hours cannot be expressed with clock times alone, and a shift that crosses a daylight-saving change is counted on the clock face, so it may be an hour off the real elapsed time.

Common errors and how to fix them

Every row says start time is not HH:mm
The start column is probably holding a full date and time or a number like 0.375 from a spreadsheet. Format the column as text in HH:mm before exporting, or pick a different column.
end time is earlier than start time and overnight shifts are off
Either the shift crossed midnight, in which case turn overnight shifts back on, or the start and end columns are swapped in the column choices.
break is as long as the shift or longer
The break cell is likely in hours (0.5) or a time (00:30) rather than minutes. Convert the break column to minutes so 30 means half an hour.
start and end are the same time
Some exports fill days off or sick days with 00:00 in both columns. Those rows are reported instead of counted. Delete them or leave them as they are, since they add no hours either way.

Best practices

  • Keep one row per continuous shift, with the break recorded separately, so each row's overtime means what payroll expects.
  • Run the tool on the raw export and keep the downloaded file alongside it, so any question about a pay figure can be traced back to the original times.
  • Fix rows reported as errors at the source rather than typing hours into the output, so the next export does not repeat the problem.

Why decimal hours and not hours and minutes

Payroll multiplies hours by a rate, and 7:45 cannot be multiplied directly: 7.45 times a rate gives the wrong pay because 45 minutes is 0.75 of an hour, not 0.45. Writing 7.75 avoids that mistake. If you need the hours-and-minutes form for a printed timesheet, multiply the decimal part by 60 in your spreadsheet.

Which rows count toward the totals

Only rows with readable times and a sensible break are added to the per-person totals. Rows with errors are left out entirely rather than counted as zero, and the caption above the table says so. The days column counts distinct dates per person, so two shifts on the same date count as one day.

  • ok, overnight and overtime rows: counted
  • check date rows: hours counted, the date ignored for the day count
  • error rows: not counted, hours left blank

Frequently asked questions

Can it apply a weekly overtime limit, such as 40 hours?

Not directly; the threshold applies to each row. For a weekly rule, load one week at a time and compare each person's total hours in the totals table with your weekly limit.

What happens to a shift from 22:00 to 22:00?

It is reported as an error, because the same start and end time could mean no work at all or a full 24 hours, and the tool will not pick one for you.

Does it read times like 0930 or 9h30?

No. Only times with a colon are read, with an optional AM or PM. Other forms are listed as unreadable with their row number so you can correct them.

Are paid breaks handled?

Only enter unpaid breaks in the break column. A paid break is part of worked time, so leave it out of the column or set that cell to 0.