Unix timestamp explained: seconds, milliseconds, and time zones
What a Unix timestamp is, how to tell seconds from milliseconds, and how to convert epoch time to a date when debugging APIs, logs, and JWTs.
The epoch
A Unix timestamp counts seconds (or milliseconds) since 00:00:00 UTC on 1 January 1970. It is a single number that represents an instant, independent of how you format the calendar date later. Use our Unix timestamp converter to turn that number into a readable date and back.
Seconds or milliseconds?
Ten-digit values near “now” are usually seconds. Thirteen-digit values are usually milliseconds (as in JavaScript Date.now()). Mixing them up shifts dates by centuries—always check the magnitude.
When people ask for “time with seconds and milliseconds,” they usually need either a 10-digit Unix timestamp (whole seconds) or a 13-digit one (milliseconds since the epoch). JavaScript’s Date.now() returns milliseconds; many APIs and databases store seconds. Convert carefully before you compare.
Local display vs UTC
The instant is absolute; your browser displays it in a time zone. When scheduling across cities, compare with a world clock and confirm whether an API stores UTC.
Quick convert
Paste a Unix timestamp into the converter to see the local date, or pick a date/time to get the epoch value. Pair it with the JWT decoder when you are checking an exp claim that is also stored as Unix time.
Try related tools
- Unix timestamp converter — Convert a Unix timestamp (epoch) to a date and back.
- JWT decode — JWT decode online — inspect header and payload (no verify).
- World clock — See the current time in several cities at once.
Popular file tools (no upload)
Convert HEIC to JPG · Merge PDF files · Split a PDF · Compress an image