Minutes from midnight
--
Free · Instant · No signup
Convert a 12-hour hour and minute plus AM/PM into 24-hour time, or the reverse.
Page updated 2026-09-04.
Minutes from midnight
--
2:30 PM converts to 14:30 in 24-hour (military) time -- 870 minutes from midnight (14 x 60 + 30). For any PM hour other than 12, the conversion is simply adding 12 to the 12-hour value, which is exactly what happened here (2 + 12 = 14).
The two genuine edge cases in this conversion are the ones most commonly gotten wrong manually: 12:00 AM (midnight) converts to 00:00 in 24-hour time, not 12:00, and 12:00 PM (noon) converts to 12:00, not 00:00 or 24:00 -- the '12' in 12-hour time is genuinely ambiguous without the AM/PM label, which is precisely the ambiguity 24-hour time was designed to eliminate.
Minutes pass through completely unchanged in either direction (0-59 in 12-hour format map directly to 0-59 in 24-hour format) -- only the hour component needs the actual AM/PM-aware conversion logic.
Hour 12 AM is 00. Hour 12 PM is 12. Minutes stay 0-59. 24-hour time removes the AM/PM ambiguity entirely by using the full 0-23 hour range, where each hour value maps to exactly one specific time of day with no additional label needed -- which is exactly why it's the standard in aviation, medicine, the military, and most of the world outside a handful of countries that primarily use 12-hour time in casual contexts.
This bidirectional converter handles both directions -- 12-hour to 24-hour and back -- using the same underlying hour-mapping logic in reverse, since every 24-hour value maps back to exactly one unambiguous 12-hour-plus-AM/PM equivalent.
Minutes-from-midnight (870 in this example) is a useful secondary figure for programming or scheduling contexts that need a single sortable or comparable number representing a time of day, rather than working with the hour and minute as two separate values.
For comparing this time across different timezones rather than just converting its format, the World Clock Offset Visualizer is the related tool.
If the underlying need is converting a duration (not a specific clock time) into decimal hours, the Time to Decimal Hours Converter handles that different conversion.
For any PM hour other than 12, 24-hour conversion adds 12 to the 12-hour value: 2 PM + 12 = 14, giving 14:30. Minutes (30) carry over unchanged in either direction.
Hour 12 AM is 00. Hour 12 PM is 12. Minutes stay 0-59. Midnight is hour 0 in the 24-hour system, so 12:00 AM (which in 12-hour time confusingly uses '12' to mean the start of the day) correctly maps to 00:00, not 12:00, which would represent noon instead.
Hour 12 AM is 00. Hour 12 PM is 12. Minutes stay 0-59. Noon is exactly the halfway point of the day, mapping to hour 12 in 24-hour time. The '12' in '12:00 PM' happens to already match its 24-hour equivalent, which is part of why 12-hour time's use of '12' for both midnight and noon is a common source of confusion.
It's the total number of minutes elapsed since 00:00 (midnight) -- 14:30 is 14 x 60 + 30 = 870 minutes into the day. This single sortable number is useful for programming or scheduling logic that needs to compare times of day numerically.
Yes, using the reverse direction option -- the same hour-mapping logic works in reverse, since every 24-hour value corresponds to exactly one unambiguous 12-hour-plus-AM/PM equivalent.
Character Count without Spaces Calculator Count characters with spaces, characters without whitespace, and words in one pass.
Random List / Name Picker & Spinner Pick one trimmed line at random using crypto.getRandomValues.
Time Duration & Hours Worked Timesheet Calculator Hours worked from start HH:MM, end HH:MM, and unpaid break minutes. Overnight shifts wrap.
Electric Vehicle (EV) Charging Time & Cost Estimator Charge hours and wall-energy cost from kWh needed, charger kW, price, and efficiency.