Unix Timestamp Converter
Convert Unix timestamps.
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
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?
Can I convert a date to a timestamp?
Why does the local time differ from UTC?
What is the Unix epoch?
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 YouTubeHow base64 encoding works
Andrew Schmelyun
Mental model for Base64 encode/decode tools.
Watch on YouTube