Unix timestamp

All tools

How to convert a Unix timestamp to a date

Translate a log time from Unix to UTC. Check whether the source uses seconds or milliseconds; for reverse conversion include the time zone.

Steps

Paste the input into the form and choose a mode if one is offered. Check the result before copying or saving it.

Use this tool: Unix timestamp

Example

0 s → 1970-01-01T00:00:00.000Z
1000 ms → 1970-01-01T00:00:01.000Z

What to check

Identify whether the timestamp is in seconds or milliseconds first. The wrong unit can produce a valid-looking but completely different date.

Common tasks and examples

Check the unit or time zone before comparing results. An elapsed duration is different from a point on the calendar.

  • -1 s → 1969-12-31T23:59:59Z
  • 1970-01-01T00:00:01Z → 1 s
  • 1000 ms → 1 s

Task reference

s → ISO 8601
Settings: Input: 0 · What to expect: 1970-01-01T00:00:00Z
s → ISO 8601
Settings: Input: -1 · What to expect: 1969-12-31T23:59:59Z
ms → ISO 8601
Settings: Input: 1000 · What to expect: 1970-01-01T00:00:01Z
ISO 8601 → s / ms
Settings: Input: 1970-01-01T00:00:01Z · What to expect: 1 s · 1000 ms

More tools