Skip to content
GAMETROZ

Unix Timestamp Converter

Convert Unix timestamps to readable dates and dates back to timestamps, in UTC and your time zone.

Timestamp to date

Seconds (10 digits) or milliseconds (13 digits).

Enter a timestamp or press Now to see it as a date.

Date to timestamp

Pick a date and time to get its Unix timestamp.

Processed locally in your browser.

About Unix Timestamp Converter

A Unix timestamp counts the seconds (or milliseconds) since January 1, 1970 at 00:00:00 UTC. Logs, APIs, databases and JWTs use it because it is a single number with no time zone attached.

The tool tells seconds and milliseconds apart by size, so a 10-digit value is read as seconds and a 13-digit value as milliseconds. You can override that. Results are shown as UTC (ISO 8601), in your device's time zone, in a US-friendly format and as relative time, such as 3 days ago. The date-to-timestamp panel reads the time in your time zone.

How to use Unix Timestamp Converter

  1. 1Paste a Unix timestamp, or press Now to use the current time.
  2. 2Leave the unit on Auto-detect, or force seconds or milliseconds.
  3. 3Read the UTC, local, US-style and relative results, and copy any of them.
  4. 4To go the other way, pick a date and time in the second panel to get its timestamp.

Examples

Input

1700000000

Result

2023-11-14T22:13:20.000Z
Tuesday, November 14, 2023, 5:13:20 PM (America/New_York)
Ten digits are read as seconds; the second line is the same moment in New York.

Input

1700000000000

Result

Detected milliseconds: 2023-11-14T22:13:20.000Z
Thirteen digits are read as milliseconds, so it is the same moment.

Input

2023-11-14 17:13:20 in America/New_York

Result

1700000000
A wall-clock time in a time zone converted to Unix seconds.

Frequently asked questions

How does the tool tell seconds from milliseconds?

By magnitude. Values with an absolute size of 100 billion or more are read as milliseconds, anything smaller as seconds. That covers every date from 1973 to the year 5138 in seconds. Choose a unit yourself if you have an unusual value.

What time zone is used for local time?

The time zone your browser reports for your device. The date-to-timestamp panel reads the date and time you enter in that same zone, including its daylight saving rules.

What happens in 2038?

Systems that store seconds in a signed 32-bit number overflow on January 19, 2038. This converter uses 64-bit floating point numbers, so dates far beyond 2038 work fine here.

Guides

Tools guide

How to Format, Minify and Validate JSON

Make messy JSON readable, shrink it again for production, and find the exact line and column of a syntax error, with the five mistakes behind most failures.

· 3 min read

Tools guide

What Is a Unix Timestamp?

A Unix timestamp counts the seconds since January 1, 1970 UTC. Learn seconds versus milliseconds, time zones, the year 2038 issue and how to convert one.

· 3 min read

Tools guide

Best Free Online Developer Tools

A tour of the free developer and generator tools in the Gametroz catalog: JSON, Base64, URL, timestamps, hashes, UUIDs, passwords, QR codes and more.

· 3 min read