Seconds Since Midnight
Calculate how many seconds have passed since midnight for any given time
Type in any time and get back the total seconds counted from midnight — no manual math with 3,600 and 60. The result includes minutes, hours, and a day-progress percentage so you can drop the number straight into scheduler configs, log analysis, or time-series queries.
And everything runs in your browser. Nothing gets uploaded.
How It Works
The formula is straightforward: multiply hours by 3,600, minutes by 60, and add the remaining seconds. So 2:30:15 PM becomes (14 × 3600) + (30 × 60) + 15 = 52,215. The tool also divides back to show equivalent minutes and hours, plus a day-progress percentage out of 86,400.
Examples
Morning standup time
Your team's daily standup is at 9:15 AM. You need the seconds value for a scheduler config.
09:15:00
33,300 seconds
555 minutes | 9.25 hours
38.54% through the day
Lunch break trigger
Setting a cron-like trigger at exactly noon.
12:00:00
43,200 seconds
720 minutes | 12 hours
50% through the day
Late-night log timestamp
A server log entry shows 11:47:33 PM. You're comparing it against epoch offsets and need the raw number.
23:47:33
85,653 seconds
1,427.55 minutes | 23.79 hours
99.14% through the day
Who Uses This
Convert wall-clock times to integer offsets for scheduler configs and time-series databases.
Normalize timestamps to seconds-of-day for pattern analysis across different dates.
Check homework answers when converting between time formats in math or CS classes.
Set exact trigger points for batch jobs, backups, and automated maintenance windows.
Common Mistakes
Typing "2:30" when you mean 2:30 PM gives you 9,000 seconds instead of 52,200. This tool uses 24-hour format, so afternoon times need to be 14:30, not 2:30.
Midnight (00:00:00) equals zero seconds. The day maxes out at 86,399 seconds (23:59:59). If you need to represent "end of day," use 86,399 — not 86,400.
Some browsers hide the seconds portion of the time picker by default. If precision matters, type the time manually or make sure your picker shows HH:MM:SS — those extra seconds add up in calculations.
Technical Details
- Processing: 100% client-side JavaScript
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Format: 24-hour time (HH:MM:SS), seconds optional
- Max Value: 86,399 seconds (23:59:59)
- Precision: Down to the individual second
Frequently Asked Questions
How many seconds is noon?
Noon (12:00:00) is exactly 43,200 seconds since midnight. That's 12 hours multiplied by 3,600 seconds per hour. It is also the halfway mark of any day — 50% of 86,400.
What's the formula to convert time to seconds since midnight?
Multiply the hour by 3,600, the minute by 60, then add the seconds. For 14:30:45, that's (14 × 3600) + (30 × 60) + 45 = 52,245. Works for any time in 24-hour format.
How many total seconds are in a day?
Exactly 86,400. That is 24 hours times 60 minutes times 60 seconds. The last second of the day is 23:59:59, which equals 86,399. Once you hit 86,400, you've rolled over to the next day's midnight.
Can I use seconds since midnight in Excel or Google Sheets?
Yes. If cell A1 has a time value, use =A1*86400 to get seconds since midnight. Spreadsheets store times as fractions of a day, so multiplying by 86,400 gives you the integer. This calculator does the same thing — just faster when you don't want to open a spreadsheet.
Is seconds since midnight the same as Unix timestamp?
No. A Unix timestamp counts seconds since January 1, 1970 (UTC) and keeps growing forever. Seconds since midnight resets to zero every day at 00:00:00. They measure completely different things, though you can extract seconds-since-midnight from a Unix timestamp with modulo 86,400.