What is a Unix epoch timestamp?
A Unix epoch timestamp is the number of seconds (or milliseconds) elapsed since January 1, 1970 00:00:00 UTC — also called the Unix epoch or POSIX time. It is the universal language of time in computing: a single integer that represents any moment unambiguously, with no timezone confusion and no locale formatting.
Epoch timestamps appear everywhere in software development. JWT tokens encode the expiry (exp), issued-at (iat), and not-before (nbf) claims as epoch seconds. Server logs, API responses, database timestamps, Stripe webhook events, GitHub event payloads, and nearly all Unix system calls return epoch integers. When you see a number like 1741730648 in a log or a JSON body, you are looking at an epoch timestamp.
epochop converts these integers to human-readable dates instantly — and back. All conversion logic runs in your browser via the JavaScript Date API. Nothing is sent to a server. The live ticker at the top shows the current epoch, updating every second. Quick-offset buttons let you jump to common reference points: now, an hour ago, yesterday, a week ago, a month ago, a year ago.
epochop auto-detects whether a timestamp is in seconds or milliseconds. Values over 1 trillion are treated as milliseconds (representing dates after 2001); smaller values are treated as seconds. Both formats are common — Unix system time is in seconds, JavaScript's Date.now() is in milliseconds, and APIs vary.
Frequently asked questions
How does epochop detect seconds vs milliseconds?
What is the current Unix timestamp?
What is the Year 2038 problem?
Why do JWT tokens use epoch timestamps?
exp (expiry), iat (issued at), and nbf (not before) are specified in the RFC as epoch seconds. This avoids timezone and locale ambiguity — the same integer means the same moment everywhere. If you are debugging a JWT and need to read these claims, paste the value here or use jwtchop to decode the full token.