← All tools
Developer · Free tool

Unix Timestamp Converter

Convert Unix timestamps to readable dates and turn dates back into seconds or milliseconds.

Timestamp → date

10 digits usually means seconds; 13 digits usually means milliseconds.

Readable time

UTC
—
Local
—
ISO 8601
—
Seconds
—
Milliseconds
—

Date → timestamp

—Unix seconds
—Unix milliseconds

Unix timestamps explained

A Unix timestamp counts elapsed time from 1 January 1970 at 00:00:00 UTC. Many APIs use seconds, while JavaScript and some services use milliseconds.

Runs locally

Conversions are performed by your browser and are not submitted to KRIYANO.

How to use this tool effectively

Convert Unix or epoch timestamps into readable dates, or turn a date and time back into Unix seconds and milliseconds. This is useful when APIs, logs, databases and JavaScript code use different time representations.

Common uses

  • Read an epoch value from an API response or application log.
  • Convert a date into seconds for an API request, scheduled job or database field.
  • Compare second-based Unix timestamps with JavaScript millisecond timestamps.
  • Check UTC, local time and ISO 8601 representations of the same instant.

Example: seconds versus milliseconds

Input
1704067200
Output
2024-01-01T00:00:00.000Z

A 10-digit value is commonly Unix seconds. JavaScript timestamps are normally milliseconds, so the equivalent JavaScript value is 1704067200000.

Common mistakes to avoid

  • Do not confuse seconds with milliseconds; the wrong unit can shift a date by decades.
  • Remember that Unix timestamps represent an instant in UTC even when you display them in local time.
  • When copying dates between systems, confirm whether the source includes a timezone or assumes one.
Privacy

All timestamp calculations happen in the browser. Dates and times entered here are not uploaded to KRIYANO.

Frequently asked questions

What is the Unix epoch?

It is the reference point 1970-01-01 00:00:00 UTC. Unix timestamps count elapsed seconds from that point, with negative values representing earlier dates.

Why do some timestamps have 10 digits and others 13?

Modern Unix timestamps in seconds are often 10 digits, while millisecond timestamps are usually 13 digits. The exact length changes over time.

Does a Unix timestamp contain a timezone?

No. It identifies an instant. A timezone is applied only when that instant is formatted for display.