Epoch Converter: Unix Timestamp to Date and Back
Paste 1798761600 or type 2026-12-31 18:00 and get the other one instantly.
Paste a Unix number in seconds or milliseconds, or type a date to get its timestamp.
How to use it
- Paste a Unix number or type a date.
- Pick the time zone for dates without an offset.
- Copy the format you need.
About this page
A Unix timestamp, also called epoch time or POSIX time, counts the seconds since midnight UTC on January 1, 1970. It has no time zone, which is why servers, databases and APIs use it: the same number means the same moment everywhere. 1798761600 is 00:00 UTC on January 1, 2027, which is 7:00 PM on December 31 in New York and 9:00 AM on January 1 in Tokyo.
Paste a number and the converter reads its unit from the number of digits. Ten digits are seconds (most Unix tools, PHP, Python time.time() rounded). Thirteen digits are milliseconds (JavaScript Date.now(), Java System.currentTimeMillis()). Sixteen are microseconds and nineteen are nanoseconds, common in Go, databases and tracing systems. If a number is ambiguous, set the unit yourself.
To go the other way, type a date. A date with Z or an offset, like 2026-12-31T23:00:00Z or 2027-01-01T08:00:00+09:00, already names its moment. A date without one, like 2026-12-31 18:00, is read in the time zone you pick, using that zone’s clock rules on that date. If the time falls in the hour skipped when clocks spring forward, the converter says so instead of guessing.
Common questions
What is epoch time?
The number of seconds that have passed since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It is the same number in every time zone at the same moment.
How do I tell seconds from milliseconds?
Count the digits. A current timestamp in seconds has 10 digits; in milliseconds it has 13. The converter detects this for you and says which unit it used.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit number run out at 2147483647, which is 03:14:07 UTC on January 19, 2038. After that the number wraps to 1901. Modern systems use 64-bit numbers and are not affected.
Does Unix time count leap seconds?
No. Every Unix day is exactly 86,400 seconds, so a leap second is not counted. For almost every use this makes no difference.
Can a timestamp be negative?
Yes. Negative numbers are moments before 1970. -86400 is 00:00 UTC on December 31, 1969.
Related tools
Last updated · How we check our numbers