ToolSnap
Converter

Unix Timestamp Converter

Convert epoch timestamps to human-readable dates — or any date back to a Unix timestamp. Live current time included, milliseconds supported.

Current Unix timestamp

How to use

Timestamp → Date: Paste any Unix timestamp (seconds or milliseconds — both are detected automatically). You'll see the UTC time, your local time, ISO 8601 format, relative time, and day of the week.

Date → Timestamp: Pick a date and time in the date picker. The converter outputs both seconds and milliseconds. Use Set to now to get the current moment.

Current timestamp: The live counter at the top always shows the current Unix second. Click Use now to convert it immediately.

Use cases

  • Decoding iat and exp fields from JWT tokens
  • Converting log file timestamps to understand when an event occurred
  • Setting database TTL (time-to-live) values or scheduled event triggers
  • Calculating how many seconds until a deadline for a countdown
  • Verifying API response timestamps in integration testing

Limitations

Local time display depends on your browser's timezone setting. The UTC output is always reliable regardless of locale.

Dates before 1 January 1970 (negative timestamps) are not supported by this tool. For historical date arithmetic use a dedicated library like Temporal or date-fns.

Frequently asked questions

What is a Unix timestamp?
A Unix timestamp (also called Epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970. It is a single integer that represents any point in time, independent of timezone.
What is the current Unix timestamp?
The current Unix timestamp changes every second. Use this tool to get the live current value. At the start of 2026, the timestamp was approximately 1,767,225,600.
Why do developers use Unix timestamps?
Unix timestamps are timezone-agnostic and trivial to store, sort, and compare. Subtracting two timestamps gives you the duration in seconds. They are used in databases, APIs, logs, JWT tokens, caching, and time-based IDs.
What is the Y2K38 problem?
On 19 January 2038, 32-bit signed Unix timestamps will overflow and wrap to a negative value representing 1901. Systems using 64-bit integers are not affected. Most modern software already uses 64-bit timestamps.
Does Unix timestamp include milliseconds?
Classic Unix time is in seconds. JavaScript's Date.now() returns milliseconds (13 digits). This tool handles both — if you paste a 13-digit number it is automatically treated as milliseconds.

Related tools