How can I tell whether a timestamp is in seconds or milliseconds?
Select the unit explicitly. Current Unix timestamps are usually 10 digits in seconds or 13 digits in milliseconds.
Developer Utility
Convert Unix timestamps to local time, UTC, and ISO 8601, or convert a date and time to Unix seconds and milliseconds.
Current Unix timestamp
—
—
Negative values represent dates before January 1, 1970. Decimal seconds are accepted and rounded down to millisecond precision.
Convert Unix epoch timestamps in seconds or milliseconds into local time, UTC, and ISO 8601, or select a date and time to get both timestamp units.
Date and time inputs can be interpreted in your browser's local timezone or UTC. Conversion happens locally in your browser.
A Unix timestamp is the number of elapsed seconds from January 1, 1970 at 00:00:00 UTC. Many programming APIs use milliseconds instead, so select the unit to avoid interpreting the date at the wrong scale.
This converter displays both seconds and milliseconds for each date. Negative timestamps represent dates before the Unix epoch, and sub-millisecond precision is discarded.
The same instant can appear as different wall-clock times in different timezones. Local output uses the timezone configured by your browser; UTC output is normalized to Coordinated Universal Time.
ISO 8601 output includes the UTC designator (Z), making it unambiguous when shared between systems. Date inputs allow either local timezone or UTC interpretation, and nonexistent local times during daylight-saving changes are rejected.
Select the unit explicitly. Current Unix timestamps are usually 10 digits in seconds or 13 digits in milliseconds.
Yes. Local output and local date input use the timezone configured in your browser. You can also interpret date input as UTC.
It is an unambiguous UTC date-time string ending in Z, for example 2023-11-14T22:13:20.000Z.
These tools are commonly used alongside this one.