2026-05-165 min read

Unix Timestamps Explained (Epoch Time)

Convert between Unix seconds, milliseconds, and human-readable dates — essential for logs, APIs, and databases.

Unix time counts seconds since 1 January 1970 00:00:00 UTC (the “epoch”). Developers see it in JWT exp claims, database columns, and API fields because it’s timezone-neutral and easy to sort.

Seconds vs milliseconds

Classic Unix timestamps use seconds. JavaScript Date.now() returns milliseconds — a common source of off-by-1000 bugs when integrating frontends and backends.

Always mind timezones for display

Store and transmit UTC timestamps; convert to local time only in the UI. Daylight saving changes make “local midnight” arithmetic risky in server code.

Try it instantly

Convert timestamps both ways with our Timestamp / Unix Time Converter:

Explore more tools in the Tools Directory.
Browse all articles →