Time & Data

Unix Timestamp

Convert Unix timestamps and local date times.

Runs in your browser
Timezone Detecting...
Ready

About Unix Timestamp

Unix Timestamp converts epoch values and local date-time values in both directions, with a now button for quick comparisons.

Common uses

  • Convert an expiry claim from an API token.
  • Translate a database timestamp into local time.
  • Generate a current epoch value for a test request.

Good to know

Check whether your source timestamp is in seconds, milliseconds, or another unit before comparing values.

Seconds or milliseconds

Most timestamp confusion starts with units. Compare the number of digits and source documentation before converting an epoch value from a database, API token, or log line.

Local time review

Use local and UTC views together when explaining incidents or expiry times. The same instant can look like a different calendar day in another timezone.

Common mistakes

Unix timestamps do not store a timezone by themselves. They represent an instant; timezone only affects how that instant is displayed.

Worked example: Recognizing seconds versus milliseconds

Input
1704067200 seconds
Expected result
2024-01-01 00:00:00 UTC

Ten-digit contemporary values are commonly seconds; JavaScript timestamps are commonly milliseconds. Confirm the source unit rather than guessing from the displayed date.

Technical reference

The behavior described on this page was reviewed against The Open Group: time(). External standards remain authoritative when their requirements differ from a browser implementation.

Before you rely on the output

  • Confirm timezone, unit, precision, and source-system expectations before using converted values for scheduling, billing, legal, or operational deadlines.
  • Privacy mode: inputs are processed locally in your browser and are not intentionally sent to an application server.

Related tools

Cron Explainer

An unhandled error has occurred. Reload x