Format Clock Time
Format time in various styles: 12-hour, 24-hour, military, with/without seconds, and custom patterns. 100% client-side.
HH 24hr hours (00-23), H 24hr hours (0-23), hh 12hr hours (01-12), h 12hr hours (1-12), mm minutes (00-59), m minutes (0-59), ss seconds (00-59), s seconds (0-59), A AM/PM, a am/pm Paste a time value — 14:30, 2:05 PM, whatever you have — and get it back in six formats instantly: 12-hour, 24-hour, military, with or without seconds, plus total seconds since midnight. There's a custom pattern builder too if you need something specific. And everything runs in your browser. Nothing gets uploaded.
How It Works
Type in a time — 24-hour like 14:30:45, or 12-hour like 2:30 PM. The parser figures out what you meant, breaks it into hours, minutes, and seconds, then rebuilds it in every standard format. The custom pattern feature lets you mix and match tokens (HH, mm, ss, A) to create whatever notation you need.
Examples
Afternoon Meeting Time
Your calendar says 14:30 and you need to tell a US colleague what time that is.
14:30
24-hour: 14:30:00
12-hour: 2:30:00 PM
Military: 1430
Short: 2:30 PM
Server Log Timestamp
You're debugging and the log shows 08:05:33. You want to know how many seconds into the day that is for a time-series query.
08:05:33
24-hour: 08:05:33
12-hour: 8:05:33 AM
Military: 0805
Seconds: 29,133
Converting AM/PM to 24-Hour for a Database
A client sent a spreadsheet with times like "11:45:00 PM" and your database column expects HH:MM:SS in 24-hour format.
11:45:00 PM
24-hour: 23:45:00
Military: 2345
Seconds: 85,500
Who Uses This
Reformatting timestamps from APIs and logs into the notation their codebase expects.
Converting mixed 12/24-hour data into a consistent format before importing into SQL or Excel.
Checking their 24-hour to 12-hour conversions for homework or exam prep.
Decoding flight itineraries that mix military time and AM/PM across different airlines.
Common Mistakes
In 24-hour time, noon is 12:00 and midnight is 00:00. People often write 12:00 AM thinking it means noon. It doesn't — 12:00 AM is midnight. If you mean midday, enter 12:00 PM or just 12:00 in 24-hour mode.
Military format is four digits, no separator — 0830, not 08:30. If you're pasting the result into a system that expects military time and include the colon, it will probably reject it.
There is no 25:00 or 14:72 in any time system. The tool will flag invalid input, but double-check your source data if you keep hitting errors — it usually means the original format was a duration, not a clock time.
Technical Details
- Processing: 100% client-side JavaScript
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Formats: 24-hour (HH:MM:SS), 12-hour (h:MM:SS AM/PM), seconds optional
- Custom Tokens: HH, hh, H, h, mm, m, ss, s, A, a
- Offline: Works without internet after first load
Frequently Asked Questions
What is the difference between 12-hour and 24-hour time?
12-hour time runs from 12:00 AM (midnight) through 12:59 AM, then 1:00 AM to 11:59 AM, then 12:00 PM (noon) through 11:59 PM. 24-hour time starts at 00:00 (midnight) and counts straight up to 23:59. Most of Europe, Asia, and Latin America defaults to 24-hour. The US, Canada, and Australia lean toward 12-hour in daily life.
How do I convert military time to regular time?
Take the first two digits as the hour. If it's 13 or higher, subtract 12 and add PM. So 1430 becomes 14:30, minus 12 gives 2:30 PM. For hours 01 through 12, just add AM (except 12 itself, which is PM). Midnight is 0000, noon is 1200. Or just paste the value in here and skip the math.
What are seconds since midnight used for?
It's a single number representing any time of day — great for sorting, calculating time differences, or storing times in databases as integers. For instance, 14:30:00 is 52,200 seconds. Subtract two values and you get the gap in seconds without worrying about hour and minute arithmetic.
Can I format times in bulk?
This tool handles one time at a time. For bulk formatting, you'd typically use a spreadsheet formula or a script. But for quick one-off conversions — checking a timestamp from a log, verifying a meeting time across formats — it is faster than writing code.
Is 12:00 AM midnight or noon?
12:00 AM is midnight. 12:00 PM is noon. This trips up almost everyone at some point. The trick: AM stands for "ante meridiem" (before midday), so the 12 AM hour is the one right before the day technically starts. If you want to avoid the confusion entirely, use 24-hour format — 00:00 for midnight, 12:00 for noon. No ambiguity.