Pick a date and time below and the corresponding epoch value in seconds appears instantly, ready to copy into a database, API request, or config. The conversion runs locally in your browser.

Current epoch: 1782284433 s · 1782284433291 ms

Enter a valid value.

Example date to epoch conversions
Date (UTC)Epoch (seconds)
1970-01-01 00:00:000
2000-01-01 00:00:00946684800
2021-01-01 00:00:001609459200
2025-01-01 00:00:001735689600
2030-01-01 00:00:001893456000
Worked example
2021-01-01 00:00:00 UTC1609459200

Midnight on 1 January 2021 is 1,609,459,200 seconds after the epoch.

Frequently asked questions

How do I convert a date to a Unix timestamp?

Compute the number of seconds between your date and 00:00:00 UTC on 1 January 1970. This tool does it for you — just pick the date and time and read off the epoch value.

Does the result depend on my time zone?

The datetime you enter is interpreted in your local zone, then converted to the universal epoch, which is the same number everywhere. That is why epoch timestamps are convenient for storage.

Should I store dates as epoch timestamps?

Epoch integers are compact, easy to sort and compare, and free of time-zone ambiguity, so they are a popular storage format. Keep the zone information separately if you need to display local times.

Is the conversion private?

Yes. It is performed entirely in your browser, with no upload of the date you enter.

Related conversions

Need more options? Try the full Unix Timestamp Converter.