Unix Timestamp Converter

    Convert Unix epoch timestamps to dates and dates back to epoch seconds, milliseconds, microseconds and nanoseconds with UTC and local output.

    Current Unix timestamp (seconds)
    1780403087
    ms: 1780403087000
    Detected as: seconds
    ISO 8601
    2026-06-02T12:24:47.000Z
    UTC
    Tue, 02 Jun 2026 12:24:47 GMT
    Local
    2026-06-02 12:24:47 (UTC+00:00)
    Readable
    June 2, 2026, 12:24:47
    Relative
    less than a minute ago
    // JavaScript / TypeScript
    const date = new Date(1780403087 * 1000);
    console.log(date.toISOString());
    // → "2026-06-02T12:24:47.000Z"

    Convert epoch time both ways

    Developer-focused timestamp searches usually need fast bidirectional conversion: paste an epoch value and get UTC/local dates, or enter a date and get seconds, milliseconds, microseconds and nanoseconds.

    t_unix is epoch seconds, T is the selected instant in milliseconds, and T_epoch is 1970-01-01 00:00:00 UTC.

    ms is milliseconds and s is Unix timestamp seconds.

    Seconds, milliseconds and precision

    • 10-digit values are usually seconds.
    • 13-digit values are usually milliseconds, common in JavaScript.
    • 16- and 19-digit values are common in high-precision logs.
    • JavaScript Date stores milliseconds; microsecond and nanosecond remainders are shown separately.
    • Unix timestamps represent an instant; time zones only affect display.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools