<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Unix timestamp converter (epoch to date)

Paste an epoch timestamp to read it as a date, in UTC or any time zone, or pick a date to get its timestamp. Free, and computed in your browser.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Unix timestamp converter

Conversions run in your browser: nothing is sent anywhere.

Current Unix time

The clock starts once the page has loaded.

Timestamp to date

e.g. 1700000000, 1700000000000, or a date such as 2024-03-10T14:30:00Z to get its timestamp.

Enter a timestamp or use the current time to see the date.

Date to timestamp

Choose a date to get its timestamp.

Convert timestamps in a text

Every number of 10, 13, 16 or 19 digits (seconds to nanoseconds) is replaced by its ISO 8601 date in the time zone chosen above.

How to use it

  1. Paste a timestamp: the unit (seconds, milliseconds, microseconds or nanoseconds) is detected from its length, or choose it yourself. A written date (ISO 8601, RFC 2822) gives its timestamp.
  2. Read the date in UTC, in your time zone and in the zone of your choice, with ISO 8601, RFC 2822 and relative formats.
  3. To go the other way, enter a date, a time and a time zone to get the timestamp in seconds and milliseconds.
  4. To read a log, paste it under “Convert timestamps in a text”: each timestamp is replaced by a readable date.

Example

Input

1700000000 (detected as seconds)

Output

2023-11-14T22:13:20Z

Good to know

  • Automatic detection relies on the number of digits: a millisecond timestamp before March 1973, or a seconds timestamp after the year 5138, is misread, so pick the unit if in doubt.
  • Leap seconds are ignored, as in Unix time itself.
  • When clocks go back, a time that occurs twice is converted to its first occurrence; a time skipped when clocks go forward is flagged.
  • Time zone rules come from your browser and may be out of date for recent changes.
  • Everything is computed in your browser: nothing is sent to a server.

Frequently asked questions

What is a Unix timestamp?

The number of seconds elapsed since January 1, 1970 at 00:00:00 UTC, ignoring leap seconds. It is the same everywhere in the world: 1700000000 is November 14, 2023 at 22:13:20 UTC, which is 5:13:20 PM in New York (EST).

How do I tell seconds from milliseconds?

Count the digits: a current date has 10 digits in seconds, 13 in milliseconds (JavaScript, Java), 16 in microseconds and 19 in nanoseconds. The tool detects the unit from the length; choose it yourself for dates before 1973 or very far in the future.

How do I convert a Unix timestamp in Excel?

With the timestamp in A1, type =A1/86400+DATE(1970,1,1) and format the cell as date and time. For milliseconds, divide by 86400000 instead. The result is in UTC: add or subtract hours/24 for your time zone, for example −5/24 for New York in winter.

How do I convert a timestamp in Python, JavaScript or SQL?

Python: datetime.fromtimestamp(ts, tz=timezone.utc). JavaScript: new Date(ts * 1000).toISOString(), since JS counts milliseconds. MySQL: FROM_UNIXTIME(ts). PostgreSQL: to_timestamp(ts). Date.now() and System.currentTimeMillis() return milliseconds.

How do I make a Discord timestamp?

Get the timestamp in seconds, for example by entering a date and time zone under “Date to timestamp”, then write <t:1700000000:F> in your message. Discord shows it in each reader’s own time zone; the letter after the colon sets the style, R giving a relative time such as “in 2 hours”.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow after 2147483647, which is January 19, 2038 at 03:14:07 UTC, and jump back to 1901. Modern systems use 64 bits, which pushes the limit billions of years away; this converter handles both.

Sources

Checked on November 26, 2026

← Back to all tools