QuikTool

Unix Timestamp Converter

Convert Unix timestamps to dates and back, in any timezone.

Runs in your browser. Nothing is uploaded.

What is Unix Timestamp Converter?

A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since midnight UTC on 1 January 1970. Programs, databases, log files and APIs use it because a single number is easy to store, compare and sort, and it does not depend on a time zone. The catch is that people cannot read it, which is why a timestamp converter is one of the most used developer tools.

This converter turns a timestamp into a readable date and back again. Paste a number and it works out whether you gave seconds, milliseconds, microseconds or nanoseconds, so a JavaScript value like 1700000000000 and a Python value like 1700000000 both just work, and you can override the unit if you need to. It shows the date in UTC and in any time zone you pick, as ISO 8601, as an RFC 2822 string, with the weekday and the ISO week number, and as a relative phrase such as three hours ago.

Going the other way, you can pick a date and time or paste an ISO 8601 string and get the epoch seconds and milliseconds, read in the time zone you choose. The tool tells you when a local time falls in a daylight-saving gap or happens twice, instead of guessing silently. A batch mode converts a whole list of timestamps at once, and the live clock at the top shows the current Unix time. Everything runs in your browser and nothing you enter is uploaded.

How to use

  1. Read the current Unix time at the top, or click Use now to put it into the converter.
  2. Choose your time zone. The list starts with your own zone and UTC, and you can search for any other.
  3. To convert a timestamp, paste it into the Timestamp to date tab. The unit is detected automatically, or choose it yourself.
  4. To convert a date, use the Date to timestamp tab: pick a date and time or paste an ISO 8601 string.
  5. For many values at once, use the Batch tab and put one timestamp on each line, then copy the results.

Example

Input

1700000000

Output

UTC: Tue, 14 Nov 2023 22:13:20 UTC
ISO 8601: 2023-11-14T22:13:20.000Z
India (Asia/Kolkata): Wed, 15 Nov 2023 03:43:20 +05:30

Frequently asked questions

How do I tell seconds from milliseconds?
Count the digits. Timestamps in seconds have about 10 digits today, milliseconds have 13, microseconds 16 and nanoseconds 19. The converter uses this to detect the unit, and you can pick the unit yourself if a value is read wrongly.
Does a Unix timestamp have a time zone?
No. It always counts seconds since 1 January 1970 UTC. The time zone only matters when you display the moment as a local date, which is why you choose a zone for the results.
What happens with daylight saving time?
When you enter a local time that does not exist because the clocks skipped forward, it is moved forward by the length of the gap. When a local time happens twice because the clocks went back, the earlier moment is used. The tool shows a note whenever either happens.
What is the Year 2038 problem?
Systems that store the timestamp in a signed 32-bit number run out of room on 19 January 2038 at 03:14:07 UTC. This converter uses larger numbers, so it handles dates far beyond 2038.