Unix timestamp converter

Turn log timestamps into human time, then convert dates back into seconds or milliseconds without mental math.

Current Unix timestamp
0
Waiting for input...

Timestamp basics

What is a Unix timestamp?

A Unix timestamp measures time from January 1, 1970 at 00:00:00 UTC. The number is timezone-neutral, but the moment you display it to a person, logs, dashboards, databases, and browsers may render it in different local zones.

Common units

UnitTypical lengthExample
Seconds10 digits1716300000
Milliseconds13 digits1716300000000

Time concepts

What is the Y2038 problem?

Systems using signed 32-bit integers for Unix timestamps overflow in January 2038. Modern 64-bit systems avoid that limit.

UTC vs local time

Store and compare timestamps in UTC when possible. Convert to local time only at the edge of the product, such as UI display, reports, or exports.

ISO 8601

A readable timestamp format such as 2024-05-21T14:30:00Z. It is widely used in APIs, databases, logs, and distributed systems because it can include timezone information.

Seconds vs milliseconds

Ten-digit values are usually seconds. Thirteen-digit values are usually milliseconds. Mixing the two is one of the most common timestamp bugs.

Common conversion reference

DurationSecondsMilliseconds
1 minute6060,000
1 hour3,6003,600,000
1 day86,40086,400,000
1 year (365 days)31,536,00031,536,000,000