Unix Timestamp Converter

Convert Unix timestamps.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a Unix timestamp to see the date in UTC and your local time zone, or paste a date to get the timestamp in seconds and milliseconds. Whether a number is seconds or milliseconds is detected for you.

How to use

1
Step 1
Paste a timestamp such as 1700000000, or a date such as 2024-05-01 12:30:00.
2
Step 2
Press Run.
3
Step 3
Read the UTC time, local time, ISO 8601 string, seconds and milliseconds.

How it works

A number with 11 or more digits is read as milliseconds, anything shorter as seconds. A date string is parsed by your browser: a trailing Z or offset is honoured, a date-only value such as 2024-05-01 is midnight UTC, and a date with a time but no zone is read in your local time zone.

Worked example

Timestamp to UTC

Input
1700000000
Output
Detected: seconds UTC: 2023-11-14 22:13:20 UTC ISO 8601: 2023-11-14T22:13:20.000Z Seconds: 1700000000 Milliseconds: 1700000000000
Walkthrough
The local line is also shown and depends on your time zone. It is left out here.

Limitations

  • Timestamps before about 1973 written in milliseconds can be mistaken for seconds.
  • Dates without a zone use your browser's local time, so the same text gives different results in different zones.
  • Leap seconds are not represented.

Questions

How do I tell seconds from milliseconds?
The tool does it for you: 11 or more digits is milliseconds, otherwise seconds.
Can I convert a date to a timestamp?
Yes. Paste a date such as 2024-05-01T12:30:00Z and both seconds and milliseconds are shown.
Why does the local time differ from UTC?
Local time uses your device's time zone, shown in brackets after the time.
What is the Unix epoch?
It is 1 January 1970 00:00:00 UTC, the starting point that timestamps count from.

Features

  • Both directions
  • Seconds or milliseconds detected
  • UTC and local time
  • ISO 8601 output

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Learn Regular Expressions - Crash Course

    freeCodeCamp.org

    Regex primer for tester and explainer pages.

    Watch on YouTube
  • How base64 encoding works

    Andrew Schmelyun

    Mental model for Base64 encode/decode tools.

    Watch on YouTube
  • Base64

    MDN

    When Base64 is appropriate versus raw binary transfer.

  • web.dev

    Google

    Modern web guidance that pairs with encoding and tooling pages.