Epoch & Unix Timestamp Converter

Free online Epoch & Unix timestamp converter. Convert seconds, milliseconds, microseconds, and nanoseconds to UTC or local date with live time diff.

0 0

What is a timestamp

A Unix timestamp represents time relative to 1970-01-01 00:00:00 UTC. Common units are seconds and milliseconds, and there are also microseconds and nanoseconds. This tool converts a timestamp to a date, or a date to second and millisecond timestamps.

How to use

  • Timestamp to date: Enter an integer and choose a unit, then view the local time, UTC, and other results. Auto mode estimates the unit from the number of digits: 10 digits for seconds, 13 for milliseconds, 16 for microseconds, 19 for nanoseconds; for other lengths, select the unit manually. The digit count cannot reliably determine the unit, so specify it manually when there is ambiguity.
  • Date to timestamp: Enter a date and time, for example 2025-11-19 10:00 or 2025-11-19T10:00:00Z with a time zone, then convert. Explicitly specifying a time zone avoids ambiguity; date-times without a time zone are interpreted in the browser's local time zone, while ISO formats containing only a date are interpreted as UTC.
  • Current timestamp: The page shows the current seconds and milliseconds, and supports pausing and copying the seconds value.
  • Time difference: Enter two timestamps and choose their units to view the elapsed time.

Date display is limited by the date range and precision the browser supports; converting microseconds or nanoseconds to a date does not preserve sub-millisecond precision.

Common conversion scenarios

  • Unix timestamp to date: Turn 10-digit and 13-digit numbers returned by an API into readable times.
  • Date to timestamp: Convert a point in time to seconds or milliseconds for use as an API parameter.
  • Millisecond vs second timestamps: Seconds are 10 digits and milliseconds are 13 digits; using the wrong unit throws the result off by 1000x.
  • UTC vs local time comparison: The tool shows both local time and UTC, making cross-time-zone checks easy.

Common search scenarios and examples

  • What's the difference between a 10-digit and a 13-digit timestamp? 10 digits is second-level (1732000000) and 13 digits is millisecond-level (1732000000000); converting between them differs by 1000x, and the wrong unit gives a completely wrong date.
  • How do I convert a timestamp to Beijing time online? Enter the timestamp, choose seconds as the unit, and the "local time" in the results is the time in your own time zone (such as Beijing time, UTC+8).
  • Which timestamp should I use for an API? Use "Date to timestamp"; second-level works for most API parameters, while millisecond-level is used for front-end JS Date.now() and some logs.
  • Why don't UTC and local time match? The page shows both UTC and local time; the difference is the time-zone offset, not a conversion error.
  • What unit are exp/iat in a JWT? A JWT's exp and iat are 10-digit second-level timestamps; copy them into this page or the JWT online decoder to check expiry time.

Frequently Asked Questions

What's the difference between a 10-digit and a 13-digit Unix timestamp?

A 10-digit timestamp is in seconds (s) and a 13-digit timestamp is in milliseconds (ms); some high-precision logs also show 16-digit microsecond and 19-digit nanosecond timestamps.

Why does auto unit detection sometimes need manual switching?

Auto mode estimates the unit from the number of digits. Early dates or unusually small values can make the digit count ambiguous; in that case, manually select seconds/milliseconds/microseconds/nanoseconds for an accurate result.

Does the converted result use local time or UTC?

The page shows both your browser's local time zone and standard UTC (ISO 8601) time, so you can compare directly against server logs.

How is the time difference calculated?

Enter two timestamps and confirm each unit, then click calculate to get the difference in days, hours, minutes, and seconds.