DateTime to Epoch Converter

Free datetime to epoch converter. Convert any date and time to Unix timestamp format. Perfect for developers and database work.

Convert any date and time into a Unix epoch timestamp. Enter a human-readable date and get the corresponding seconds (or milliseconds) since January 1, 1970 UTC.

Current Unix time
—

Date and time → timestamp

Unix timestamp (seconds)
1767225600
Milliseconds
1767225600000
ISO 8601 (UTC)
2026-01-01T00:00:00.000Z
UTC offset used
+00:00

Timestamp → date and time

Thursday, January 1, 2026 at 12:00:00 AM
UTC — UTC
Read as seconds
FormatValue
ISO 8601 (UTC)2026-01-01T00:00:00.000Z
ISO 8601 (UTC)2026-01-01T00:00:00Z
RFC 2822 / HTTPThu, 01 Jan 2026 00:00:00 GMT
Seconds1767225600
Milliseconds1767225600000

Unix time counts seconds since 1970-01-01 00:00:00 UTC and ignores leap seconds. 32-bit signed timestamps overflow on 2038-01-19 at 03:14:07 UTC (2147483647).

Common use cases

  • Developers creating API requests with timestamps
  • Database engineers inserting time data
  • System administrators scripting scheduled tasks
  • Data scientists preparing time-series datasets
  • QA testers validating timestamp handling

How to use

  1. Enter the date using the date picker
  2. Enter the time if needed
  3. Select the timezone of your input
  4. Choose output format (seconds or milliseconds)
  5. Copy the epoch timestamp

FAQ

Should I use seconds or milliseconds?

Most systems use seconds, but JavaScript and some APIs use milliseconds. Check your system's requirements.

Does this account for my timezone?

Yes, select your timezone and the converter adjusts the epoch accordingly.

What about dates before 1970?

Dates before January 1, 1970 produce negative epoch values, which are valid Unix timestamps.