About Unix Epoch Converter
Epoch time is the number of seconds that have passed since the Unix epoch, 1 January 1970 00:00:00 UTC. It does not change with time zones or daylight saving, which makes it the standard way for servers to record when something happened.
Enter a date in ISO 8601 format and this converter returns the epoch value in seconds and in milliseconds, or switch the direction to turn an epoch number back into a readable date. Ten-digit values are seconds and thirteen-digit values are milliseconds.
How to use Unix Epoch Converter
- Select the direction. Date to Unix timestamp is selected for this example.
- Enter a date such as 2026-01-01T00:00:00Z, or an epoch value for the other direction.
- Click Run Tool and copy the seconds or milliseconds value.
Example
Input
2026-01-01T00:00:00Z
Output
1767225600 seconds 1767225600000 milliseconds
Common uses
- Setting an expiry time in a cookie, cache or token.
- Comparing two log entries recorded in different time zones.
- Generating epoch values for tests and API requests.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
What is the Year 2038 problem?
Systems that store epoch seconds in a signed 32-bit integer overflow on 19 January 2038. Modern 64-bit systems are not affected.
How do I get the current epoch time?
In JavaScript use Math.floor(Date.now() / 1000). In PHP use time(). In a Linux terminal run date +%s.
Does epoch time include leap seconds?
No. Unix time ignores leap seconds, so every day has exactly 86,400 seconds.