Converters

Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates, in any timezone.

Unix Timestamp -> Human Date
Human Date -> Unix Timestamp

About Timestamp

Converts between Unix timestamps (seconds or milliseconds since January 1, 1970 UTC) and human-readable dates in either direction. Unix timestamps show up constantly in logs, API responses, database fields, and JWT expiration claims, and converting one by hand involves error-prone arithmetic, particularly around timezone handling and the seconds-vs-milliseconds ambiguity that trips up a lot of API integrations. Useful for quickly checking what an unfamiliar timestamp in a log line actually corresponds to.

Classic 32-bit Unix time overflows in January 2038 — worth knowing ahead of time if you're working with an older system or a fixed-width integer field storing timestamps, rather than after it silently wraps to a garbage date.

📖 Read more in our Knowledge Base →

Current Time

Unix—
UTC—
Local—

Seconds, milliseconds or more?

Count the digits of a current timestamp:

  • 10 digits — seconds (Unix shells, most databases, JWT exp/iat).
  • 13 digits — milliseconds (JavaScript Date.now(), Java).
  • 16 digits — microseconds; 19 digits — nanoseconds (Go, some logs).

This tool treats up to 10 digits as seconds and longer values as milliseconds. For micro- or nanoseconds, cut the value to its first 13 digits before converting.

Time zones

A Unix timestamp has no time zone: it counts seconds since 1970-01-01 00:00:00 UTC. The tool shows the same moment as UTC, in your browser's local time and in ISO 8601 form. When a converted time looks off by a few hours, the timestamp is fine; the display is in a different zone. Store timestamps in UTC and convert only for display.

On the command line

  • Current time: date +%s
  • Linux, timestamp to date: date -u -d @1700000000
  • macOS: date -u -r 1700000000
  • PowerShell: [DateTimeOffset]::FromUnixTimeSeconds(1700000000)
  • SQL: FROM_UNIXTIME(…) in MySQL, to_timestamp(…) in PostgreSQL.

Leap seconds and 2038

Unix time ignores leap seconds: every day has exactly 86,400 seconds. Signed 32-bit time fields overflow on 2038-01-19 03:14:07 UTC; values after that wrap to 1901. Check old embedded systems and fixed-width database columns.