Epoch & Unix Timestamp Converter
Current epoch: …
Timestamp → Date
Enter a whole number — digits only, optional leading minus.
- Unit
- Your timezone
- UTC
- Relative
Date → Timestamp
- Epoch seconds
- Epoch milliseconds
Batch convert
| Input | Unit | UTC |
|---|
What is an epoch timestamp?
An epoch timestamp (Unix time) is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is the standard machine representation of a point in time: a single integer that is unambiguous across timezones, trivial to compare and sort, and supported by every programming language and database.
Systems disagree on the unit. Unix tools and most APIs use seconds (10 digits today),
JavaScript's Date.now() returns milliseconds (13 digits), and high-resolution
logging often uses microseconds or nanoseconds. This converter detects the unit from the
number's length, and you can override it manually. Negative values represent times before
1970.
Need code instead of a converter? See snippets for Python, JavaScript, Java, Go and 16 other languages, or read what Unix time is and why 2038 matters.