Date & Time

Date to Unix Timestamp

Convert any date to a Unix timestamp, or turn a timestamp back into a human-readable date.

Tool

About the Timestamp Converter

The Timestamp Converter converts between calendar dates and Unix timestamps — the number of seconds since 1 January 1970 (UTC). Developers use these constantly when working with databases, APIs and logs.

How to use it

  1. Enter a date to get its Unix timestamp, or enter a timestamp to get the date.
  2. Choose seconds or milliseconds if needed.
  3. Read both the UTC and your local time.

Seconds vs milliseconds

UnitUsed by
SecondsUnix, PHP, many databases and APIs
MillisecondsJavaScript (Date.now()), many web APIs

What is the Unix epoch?

The Unix epoch is 00:00:00 UTC on 1 January 1970. Timestamps are measured from that point. Negative values represent dates before 1970; this is why very old dates can look strange to systems expecting positive numbers.

Common uses

  • Debugging API responses and database records.
  • Converting log timestamps to readable dates.
  • Comparing times across systems.

Who it is for

Developers, sysadmins and data analysts working with timestamps.

Frequently asked questions

Both are supported. Choose the unit you need — JavaScript uses milliseconds, most other systems use seconds.
You may be mixing seconds and milliseconds, or comparing UTC with local time. Check the unit and the displayed zone.
The Unix epoch is 1 January 1970, 00:00:00 UTC — the starting point for all Unix timestamps.

Related tools

Guides for this tool