Loading…

Developer tools10.08

Unix Timestamp Converter

Convert a Unix (epoch) timestamp in seconds or milliseconds to a date and time in UTC and your time zone, or turn a date into a timestamp.

Back to Developer tools

Current timestamp: —

What do you want to convert?

In seconds (10 digits), milliseconds (13), microseconds (16), or nanoseconds (19). The unit is detected automatically.

This runs entirely in your browser. We don’t store any data.

Date (ISO 8601, UTC)

Seconds

2023-11-14T22:13:20.000Z

In UTC
—
In your time zone
—
Relative to now
—
Seconds
1700000000
Milliseconds
1700000000000
ISO 8601
2023-11-14T22:13:20.000Z
RFC 7231 (HTTP)
Tue, 14 Nov 2023 22:13:20 GMT

How to use it

  1. 01

    Choose whether to convert a timestamp to a date or a date to a timestamp.

  2. 02

    Paste the timestamp (the unit is detected from the number of digits), or pick a date and say whether it’s in UTC or your local time.

  3. 03

    You’ll see the date in UTC, in your time zone, and in ISO 8601 and HTTP formats, plus the timestamp in seconds and milliseconds.

How it works

Unix (epoch) time counts the seconds elapsed since January 1, 1970, at 00:00:00 UTC, ignoring leap seconds. It’s the standard way to store dates in databases, logs, and APIs.

Many systems use milliseconds (JavaScript, Java) instead of seconds (PHP, Python, Unix), so the tool looks at the number of digits: up to 11 digits means seconds, 12 to 14 means milliseconds, and anything longer is microseconds or nanoseconds.

A timestamp doesn’t depend on time zones: the same instant has the same timestamp in New York and Los Angeles. Only the local time used to display it changes.

Systems that store time as a signed 32-bit integer overflow on January 19, 2038, at 03:14:07 UTC (timestamp 2147483647). This is known as the Year 2038 problem.

Examples

  • A timestamp in seconds

    1700000000 is November 14, 2023, at 22:13:20 UTC (5:13:20 p.m. in New York).

  • In milliseconds

    1700000000123 is the same instant plus 123 milliseconds.

  • The Year 2038 problem

    2147483647 is January 19, 2038, at 03:14:07 UTC.

Frequently asked questions

How do I get the current timestamp in code?

In JavaScript, use Date.now() (milliseconds) or Math.floor(Date.now() / 1000) (seconds). In Python, time.time(); in PHP, time(); and in a Unix shell, date +%s.

Can timestamps be negative?

Yes. Negative timestamps represent dates before 1970: −86400 is December 31, 1969, at 00:00 UTC.