p·plainutils.top

Timestamp to Date Converter

Unix timestamp → date

Auto-detect

Auto-detect format · Leave empty to convert the current time.

Detected format
Unix timestamp · microseconds
ISO 8601 · UTC
2024-01-01T00:00:00.123456Z
Human-readable · UTC
Mon, 01 Jan 2024 00:00:00 GMT
Unix seconds
1704067200
Unix milliseconds
1704067200123
GOOD TO KNOW

How to convert a timestamp to a date

Paste a Unix or epoch timestamp into the converter and select Convert timestamp. PlainUtils detects the unit and returns a readable UTC date, an ISO 8601 value and the equivalent seconds and milliseconds. Your browser also displays your local time. Leave the input empty to convert the current timestamp.

Timestamp to date examples

These examples all use UTC. Select a timestamp to try it in the converter.

Unix timestampFormatDate and time (UTC)
1704067200Seconds2024-01-01 00:00:00
1704067200000Milliseconds2024-01-01 00:00:00
1704067200123Milliseconds2024-01-01 00:00:00.123
1704067200123456Microseconds2024-01-01 00:00:00.123456
1704067200123456789Nanoseconds2024-01-01 00:00:00.123456789
0Seconds1970-01-01 00:00:00
-1Seconds1969-12-31 23:59:59

Seconds or milliseconds?

Present-day Unix timestamps commonly use 10 digits for seconds and 13 for milliseconds. Detection uses the size of the number, so dates close to 1970 or very far in the future can be ambiguous. Check the detected format shown in your result. For JavaScript timestamps, see the milliseconds to date converter.

Unix timestamps and time zones

The Unix epoch is January 1, 1970 at 00:00:00 UTC. A Unix timestamp identifies an instant; the same instant can have different calendar dates and times in different time zones. UTC results do not depend on your computer’s time zone. Microsecond and nanosecond fractions are preserved in the ISO result; your browser’s local time display is limited to millisecond precision.

Need the reverse conversion? Use date to Unix timestamp. For a list of log entries or database values, use the batch timestamp converter. Read the Unix time guide for code examples and details about the epoch.

THE QUICK REFERENCE

Time units

Common durations in seconds and milliseconds.

DurationSecondsMilliseconds
1 minute6060,000
1 hour3,6003,600,000
1 day86,40086,400,000
1 week604,800604,800,000

Calendar months and years have variable lengths.

A FEW ANSWERS

Frequently asked questions

Explore the Unix time guide ↗
What is a Unix timestamp?+

A Unix timestamp counts seconds since January 1, 1970 at 00:00:00 UTC. A timestamp identifies the same instant worldwide; a time zone changes how that instant is displayed. Unix time does not count leap seconds.

Are timestamps in seconds or milliseconds?+

Both are common. Contemporary timestamps usually have 10 digits in seconds and 13 in milliseconds. Microseconds use 16 and nanoseconds use 19. PlainUtils detects units by magnitude: up to 10 digits means seconds, 11–13 milliseconds, 14–16 microseconds, and 17 or more nanoseconds, ignoring the minus sign and leading zeros. This is a heuristic: values close to 1970 or very distant dates can be ambiguous. The detected unit is always shown with the result.

Can I convert dates before 1970?+

Yes. Negative timestamps represent instants before the Unix epoch. For example, -1 second is December 31, 1969 at 23:59:59 UTC.

What happens in the year 2038?+

Signed 32-bit systems run out of representable Unix seconds after January 19, 2038 at 03:14:07 UTC. This is a limitation of that integer representation, not Unix time itself. Systems using larger representations can continue beyond 2038.

How are time zones handled?+

Timestamp results use UTC. Your browser can also show your local time. When converting a date, select its UTC offset explicitly. A fixed offset does not calculate daylight saving transitions; use the offset that applies on your chosen date.