Convert epoch time both ways
This converter shows the current Unix timestamp ticking live, turns any timestamp you paste into a readable date (in both UTC and your local time), and turns a date and time back into a timestamp. It even detects whether your timestamp is in seconds or milliseconds by its length, so you don't have to guess.
What a Unix timestamp is
A Unix timestamp counts the seconds since the Unix epoch — midnight UTC on 1 January 1970. Because it's a single number tied to UTC, it's the same everywhere on Earth at a given instant, which makes it the standard way to store and exchange times in databases, logs and APIs without timezone confusion.
Common uses
- Reading a timestamp out of a log line, database row or API response.
- Generating a timestamp to send in a request or store in a record.
- Checking when a token, cache entry or event expires.
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since midnight UTC on 1 January 1970, known as the Unix epoch. It is a compact, timezone-independent way to represent a moment in time.
What is the difference between seconds and milliseconds timestamps?
Classic Unix timestamps are in seconds and are 10 digits for current dates. JavaScript and many APIs use milliseconds, which are 13 digits. This tool detects which you pasted by its length and converts accordingly.
Why do UTC and local time differ?
A timestamp marks one exact instant. UTC is the global reference time, while local time shifts it by your timezone offset (and daylight saving). The tool shows both so you can read the moment in whichever you need.