Unix Timestamp Converter
Paste a timestamp, or build one from a date.
Counting seconds since 1970
Unix time is the number of seconds since midnight UTC on 1 January 1970. That moment is called the epoch, and it was chosen simply because it was a convenient round date shortly before the systems that needed it were built.
Its advantage is that it is a single number. No time zone, no formatting, no ambiguity about whether 03/04 means March or April. Subtract two timestamps and you have the seconds between them. That is why almost every database and API stores time this way.
Seconds or milliseconds
Unix originally counted seconds. JavaScript counts milliseconds. Both are called "timestamps" and they differ by a factor of a thousand, which is a standing source of bugs — dates landing in 1970 or in the year 56,000.
Tell them apart by length: for a date near now, a seconds timestamp has ten digits and a milliseconds one has thirteen. This page guesses from the magnitude and tells you which it assumed.
The 2038 problem
Stored as a signed 32-bit integer, Unix time overflows at 03:14:07 UTC on 19 January 2038. The counter wraps to a large negative number and the date becomes December 1901.
This is the same shape of problem as the year 2000, and it has largely been addressed by moving to 64-bit storage — which pushes the limit out roughly 292 billion years. What remains is old embedded systems and file formats with the 32-bit field baked in.
Leap seconds are ignored
Occasionally an extra second is inserted into UTC to keep clocks aligned with the Earth's rotation. Unix time pretends this never happens: every day is exactly 86,400 seconds. That makes arithmetic clean and means Unix time is very slightly out of step with actual elapsed seconds. For almost everything this does not matter, and for the things where it does, other time scales exist.
Common uses
- Reading a timestamp out of a log or database.
- Debugging a date that came out wrong.
- Setting an expiry for a token or a cookie.
- Checking whether a value is seconds or milliseconds.
The working, step by step
Questions people ask
What is a Unix timestamp?
The number of seconds since midnight UTC on 1 January 1970, known as the epoch.
Is my timestamp in seconds or milliseconds?
For a date near now, seconds have ten digits and milliseconds have thirteen. This page guesses from the magnitude and says which it used.
What is the 2038 problem?
A signed 32-bit timestamp overflows on 19 January 2038 and wraps to 1901. Modern systems use 64-bit storage, which removes the limit for any practical purpose.
Does Unix time include leap seconds?
No. Every day is treated as exactly 86,400 seconds, which keeps the arithmetic clean at the cost of being slightly out of step with elapsed time.
Why use timestamps instead of dates?
Because a timestamp is one unambiguous number — no time zone, no format confusion, and subtracting two gives the interval directly.
Worked out in the page
The arithmetic runs in your browser. No date you type is sent anywhere, which matters for the ones that are nobody else's business — a birth date, a due date, a notice period. There is no server here to receive them. The about page lists every request the site makes.