Epoch Time Calculator
Convert Unix and Linux epoch time to a date, and back again.
Date and time (UTC)
Monday, January 1, 2024 at 00:00
- Unix seconds
- 1704067200
- Unix milliseconds
- 1704067200000
- ISO 8601 (UTC)
- 2024-01-01T00:00:00.000Z
- UTC
- Monday, January 1, 2024 at 00:00
- Relative to now
- 990 days ago
- Offset applied
- 0 seconds
What this calculator does
Convert Unix timestamps in seconds or milliseconds to readable UTC dates, turn a date into epoch time, and add or subtract seconds, minutes, hours or days.
Inputs and what they mean
- Convert
- — choice value.
- Unix timestamp
- — Seconds or milliseconds since 1 January 1970 UTC..
- Timestamp unit
- — choice value.
- Date and time (UTC)
- — datetime-local value.
- Add or subtract
- — number value.
- Offset unit
- — choice value.
- Time format
- — 12 or 24 hour value.
How to use it
- Choose whether to convert a timestamp to a date or a date to a timestamp.
- Enter the value, and optionally add or subtract seconds, minutes, hours or days.
- Press Calculate to see seconds, milliseconds, ISO 8601 and readable UTC time.
Formula
Unix (epoch) time counts seconds since 1 January 1970 00:00:00 UTC. Milliseconds are the same count multiplied by 1,000.
Worked example
Start of 2024
1704067200 seconds is 1 January 2024 at 00:00 UTC.
Reading the result
The headline figure is the main answer. Any breakdown underneath shows the parts that make it up, so you can check the working and see what changes when you adjust an input.
Limitations and assumptions
Results depend entirely on the figures you enter and are rounded for display. They are for general information and education, not professional advice.
Common questions
Related tools
Calculate elapsed hours and minutes between two times, including overnight.