Unix Timestamp Converter

Convert Unix epoch time to a date and back, in any time zone

Runs in your browser

Now

What is a Unix timestamp?

A Unix timestamp, also called epoch time, counts the seconds since 1 January 1970 at 00:00:00 UTC, ignoring leap seconds. It is the same number everywhere on Earth, which is why databases, APIs, logs and JWT tokens store time this way. Many systems use milliseconds instead (JavaScript, Java), and some use microseconds or nanoseconds. This tool reads the number of digits to guess the unit, and turns the value into a date in the time zone you pick, using your browser’s own time zone data.

Use cases

  • Read a created_at or exp value from a database row, API response or JWT
  • Turn a date into epoch seconds for a query, a cron job or a test
  • Check what time a log line happened in your own time zone
  • Compare times across time zones without mental arithmetic

When to use it?

Paste a number or a date. 10 digits are seconds, 13 are milliseconds, 16 are microseconds and 19 are nanoseconds. Dates can be ISO 8601 such as 2026-11-13T08:30:00Z or 2026-11-13 08:30, or an RFC 2822 date. A date without an offset is read in the selected time zone, and daylight saving changes are handled. The button on each row copies it.

Examples

  1. Seconds to date

    Input

    1700000000

    Output

    Unix (seconds)
    1700000000
    Unix (milliseconds)
    1700000000000
    ISO 8601 (UTC)
    2023-11-14T22:13:20Z
    RFC 2822 / HTTP
    Tue, 14 Nov 2023 22:13:20 GMT
  2. Milliseconds from JavaScript

    Input

    1735689600000

    Output

    Unix (seconds)
    1735689600
    Unix (milliseconds)
    1735689600000
    ISO 8601 (UTC)
    2025-01-01T00:00:00Z
    RFC 2822 / HTTP
    Wed, 01 Jan 2025 00:00:00 GMT
  3. Date with an offset to epoch

    Input

    2026-11-13T08:30:00+07:00

    Output

    Unix (seconds)
    1794533400
    Unix (milliseconds)
    1794533400000
    ISO 8601 (UTC)
    2026-11-13T01:30:00Z
    RFC 2822 / HTTP
    Fri, 13 Nov 2026 01:30:00 GMT

Questions and answers

Seconds or milliseconds: how can I tell?

Count the digits. Today a timestamp in seconds has 10 digits and one in milliseconds has 13. The tool shows which unit it used under the input box.

Does a Unix timestamp have a time zone?

No. It counts seconds from a fixed moment in UTC, so it is the same everywhere. The time zone only matters when you show it as a date.

What is the year 2038 problem?

Systems that store seconds in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC (2147483647). Modern systems use 64 bits, and this tool handles dates far beyond that.

Are leap seconds counted?

No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not part of the count. That is also how JavaScript dates work.

Sources and standards

All Tools