Unix Timestamp Converter

Convert Unix timestamps to human dates and back, in any time zone, with ISO, RFC and relative forms.

Timestamp or date
Details
Runs locally in your browser

About the Unix Timestamp Converter

A Unix timestamp counts seconds since 1 January 1970 UTC, the epoch, and it is how most systems store time. This converter turns a timestamp into every form you might need: the ISO 8601 string, the RFC 2822 string, the date in a chosen time zone, the day of week, day of year, ISO week, and a human relative form such as "3 hours ago". It also accepts a date in almost any format and shows its timestamp, so it works in both directions.

Both seconds and milliseconds are detected automatically, as are microsecond and nanosecond values, so a timestamp pasted from any source is understood. Paste several, one per line, to convert a column. The word "now" gives the current moment.

This is the tool for reading a timestamp from a log or database and for finding the timestamp of a given date. For arithmetic on dates, the Date Difference and Add or Subtract Time tools; for time-zone comparison, the Timezone Converter.

How to use

  1. Paste a timestamp or a date, or type "now".
  2. Choose a time zone if you need one other than local and UTC.
  3. Read every form on the right.

Common questions

Does it detect seconds versus milliseconds?
Yes, automatically, along with microseconds and nanoseconds, from the number of digits.
Can I convert a date to a timestamp?
Yes. Paste a date in almost any format and the timestamp is shown along with the other forms.
What is the epoch?
Midnight UTC on 1 January 1970, the point Unix time counts from.
What does "relative" mean?
A human phrase like "in 2 days" or "5 minutes ago", relative to now.