Skip to content
OverCalculator
  1. Home
  2. Conversion
  3. Unix Time Converter
Conversion

Unix Time Converter

Convert Unix epoch timestamps in seconds to UTC dates and convert UTC date text back to Unix time for logs, APIs, databases, and scripts.

Published

UTC date and time
Human-readable UTC
2023-11-14 22:13:20 UTC
ISO 8601 UTC
2023-11-14T22:13:20.000Z
Milliseconds since epoch
1,700,000,000,000
Mode
Timestamp to UTC

Unix time counts elapsed seconds from the Unix epoch in UTC.

Seconds since 1970-01-01 00:00:00 UTC.
Use ISO style text. If no time zone is included, UTC is assumed.
Conversion

Results update as you type.

Unix Time Converter

Unix time turns a moment into a single number. Instead of storing “November 14, 2023 at 22:13:20 UTC” as words and calendar fields, a Unix timestamp stores the number of seconds associated with that instant since the Unix epoch, 1970-01-01 00:00:00 UTC. The Unix Time Converter changes seconds into a readable UTC date and also changes UTC date text back into Unix seconds. It is built for software logs, API payloads, database rows, cache expirations, message queues, cron output, and debugging sessions where a numeric timestamp needs a human translation.

UTC is central to the page. A timestamp represents a global instant, not a wall clock in one city. Local displays can change by time zone, daylight saving time, and computer settings, so the primary result is always shown in UTC. For nearby unit conversions, use the time converter. For storage fields that often appear beside timestamps, use the digital storage converter. If a timestamp is attached to weather or sensor data, the temperature converter can help standardize the other values in the record.

What the Unix epoch means

The epoch is the zero point for the scale. Unix timestamp 0 is 1970-01-01 00:00:00 UTC. Timestamp 1 is one second later. Timestamp 86400 is one ordinary 24-hour day later, displayed as 1970-01-02 00:00:00 UTC. Negative timestamps point before the epoch, although older systems and some databases may not support every negative value.

This converter uses seconds for the main timestamp input because that is the classic Unix convention. JavaScript dates internally use milliseconds since the same epoch, so the result panel also shows milliseconds. That second-versus- millisecond distinction is one of the most common timestamp errors in programming.

Formula

For timestamp-to-date mode, the idea is:

UTC instant=1970-01-01 00:00:00 UTC+Unix seconds\text{UTC instant} = \text{1970-01-01 00:00:00 UTC} + \text{Unix seconds}

The JavaScript date operation behind the calculator multiplies seconds by 1000 to obtain milliseconds:

milliseconds since epoch=Unix seconds×1000\text{milliseconds since epoch} = \text{Unix seconds} \times 1000

For date-to-timestamp mode, parsed UTC milliseconds are divided by 1000 and truncated to whole seconds:

Unix seconds=trunc(milliseconds since epoch1000)\text{Unix seconds} = \operatorname{trunc}\left(\frac{\text{milliseconds since epoch}}{1000}\right)

Truncation means fractional seconds in the text input are not rounded up by this calculator. A parsed value at 22:13:20.900 UTC returns the same whole-second timestamp as 22:13:20.000 UTC.

Example calculation

With the default mode Timestamp to UTC and timestamp 1700000000, the calculator multiplies by 1000 to get 1700000000000 milliseconds. The UTC date constructed from that value is 2023-11-14 22:13:20 UTC, so that is the primary human-readable result. The supporting rows show the ISO 8601 UTC string 2023-11-14T22:13:20.000Z, the milliseconds since epoch, and the mode label. The note states that Unix time counts elapsed seconds from the Unix epoch in UTC.

Switch to UTC date to timestamp and enter 2023-11-14T22:13:20Z. The calculator parses the text, gets 1700000000000 milliseconds, truncates milliseconds ÷ 1000 to 1700000000, and returns that as the Unix timestamp. If the date text has no zone, such as 2023-11-14T22:13:20, the calculator appends UTC rather than using your local setting.

Reference table

Unix secondsUTC date and timeNotes
-11969-12-31 23:59:59 UTCOne second before the epoch
01970-01-01 00:00:00 UTCUnix epoch
11970-01-01 00:00:01 UTCOne second after the epoch
864001970-01-02 00:00:00 UTCOne ordinary day after the epoch
9466848002000-01-01 00:00:00 UTCStart of year 2000 UTC
17000000002023-11-14 22:13:20 UTCDefault example

The table is useful for checking units. If a value around 1700000000000 is entered as seconds, it will not land in 2023; it is almost certainly a millisecond timestamp that needs division by 1000 before classic Unix handling.

Programming and data domains

Unix timestamps are popular because numbers are easy to sort, compare, index, and store. A database can ask for all rows after one timestamp. An API can send an expiration time without worrying about the client’s local clock format. A log pipeline can merge events from servers in different countries as long as all systems agree on UTC instants.

For scheduling and user-facing calendars, the timestamp is only part of the story. A user still expects a local date, a time zone, and sometimes daylight saving behavior. Convert the timestamp to a UTC instant first, then apply the display zone intentionally. Do not compare a UTC timestamp with local text unless the offset or zone has been accounted for.

Pitfalls to avoid

Do not confuse seconds and milliseconds. Do not assume a local time zone when date text omits one; this calculator assumes UTC, while some programming libraries assume local time. Do not expect a leap-second display such as 23:59:60 from ordinary Unix tools. Do not round fractional seconds if event ordering matters; the calculator truncates in date-to-timestamp mode, so a fractional input can lose subsecond detail. Finally, remember that the Unix epoch is not the beginning of time or computing history. It is simply a convenient zero point used by Unix-like systems and many later platforms.

Sources

  • IETF, RFC 3339 — Internet timestamp profile using UTC indicators, numeric offsets, and fractional seconds.
  • NIST, Time and Frequency Division time services — authoritative timekeeping context from a national standards laboratory.
  • BIPM, SI base units — official context for the second as the SI base unit of time.

Frequently asked questions

What is Unix time?
Unix time is a numeric timestamp based on seconds since 1970-01-01 00:00:00 UTC, called the Unix epoch. A value of 0 is the epoch itself, positive values are moments after it, and negative values represent moments before it when supported by the software.
Does this converter use my local time zone?
No. The main timestamp-to-date result is formatted in UTC so the answer is stable across computers. In date-to-timestamp mode, date text without an explicit offset is treated as UTC by this calculator, while date text with an offset is interpreted using that offset.
Is Unix time measured in seconds or milliseconds?
Classic Unix timestamps are measured in seconds, not milliseconds. Many programming environments, including JavaScript date values, also use milliseconds since the same epoch. This converter accepts seconds for the Unix timestamp input and shows the corresponding milliseconds as a supporting detail.
What is Unix timestamp 1700000000?
With the default timestamp-to-date mode, 1700000000 Unix seconds converts to 2023-11-14 22:13:20 UTC. The calculator also shows the ISO 8601 UTC string, 2023-11-14T22:13:20.000Z, and 1700000000000 milliseconds since the epoch.

Related calculators

Unix Time Converter updated at