Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates and times, in UTC and local time.
Unix → Date
Date → Unix
Results are for general guidance only — not professional advice. Learn more.
How to use this tool
Use the Unix → Date panel to convert a Unix timestamp (in seconds) into human-readable UTC time, local time, and a relative description (e.g. "3 days ago").
Use the Date → Unix panel to pick a date and time and get the equivalent Unix timestamp in both seconds and milliseconds.
Click Use current time to populate both panels with the current time, which is useful as a starting point.
Thanks for helping us improve this tool. 🙏
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. It is a timezone-independent way to represent a point in time and is widely used in databases, APIs, and programming.
What is the Unix epoch?
The Unix epoch is the reference point for Unix timestamps: midnight at the start of 1 January 1970 (00:00:00 UTC). All Unix timestamps are measured as a number of seconds (or milliseconds) from this fixed point in time.
Why do timestamps sometimes show in milliseconds?
JavaScript's Date.now() and most modern APIs return timestamps in milliseconds rather than seconds, providing greater precision. A millisecond timestamp is simply the second timestamp multiplied by 1000. If a timestamp has 13 digits it is likely in milliseconds; 10 digits usually means seconds.
How do I convert a timestamp in JavaScript?
To convert a Unix timestamp (seconds) to a Date object: new Date(timestamp * 1000). To get the current Unix timestamp in seconds: Math.floor(Date.now() / 1000). To get milliseconds: Date.now().