FormatterHQ

Unix Timestamp Converter

Convert Unix epoch timestamps to readable dates and dates back to timestamps. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.

Loading tool…
Ready.

How to use the Unix Timestamp Converter

  1. Enter a Unix timestamp such as 1700000000, or a date such as 2024-01-01T12:00:00Z, in the timestamp box, or click Now for the current time.
  2. Leave the unit on auto-detect, or choose seconds, milliseconds, microseconds or nanoseconds yourself.
  3. Optionally pick a time zone such as Europe/London from the list to see the moment in that zone instead of your local one. To go the other way, choose a date and time in the Date → timestamp panel.
  4. Copy the format you need: seconds, milliseconds, ISO 8601, RFC 2822 or local time.

Unix timestamp converter for developers

This Unix timestamp converter translates epoch time into human-readable dates and turns dates back into timestamps. Paste a value from a log file, database column, API response or JWT, and see the exact moment in UTC and in your own local time or any other time zone you select.

What is a Unix timestamp?

A Unix timestamp counts the seconds elapsed since the Unix epoch, 00:00:00 UTC on January 1, 1970. The value 0 is that instant, 1700000000 is 22:13:20 UTC on November 14, 2023, and negative numbers are moments before 1970 (−1 is one second before midnight on December 31, 1969).

Because the count is always relative to UTC, a timestamp identifies the same instant everywhere on Earth. Time zones only come into play when you display it.

Example

Input: 1700000000   (time zone: America/New_York)

Read as seconds (auto-detected)

Local (America/New_York):  Tuesday, November 14, 2023 at 5:13:20 PM EST
ISO 8601 (-05:00):         2023-11-14T17:13:20-05:00
ISO 8601 (UTC):            2023-11-14T22:13:20.000Z
UTC:                       Tue, 14 Nov 2023 22:13:20 GMT
RFC 2822:                  Tue, 14 Nov 2023 22:13:20 +0000
Unix seconds:              1700000000
Unix milliseconds:         1700000000000
Day of year · ISO week:    318 · 2023-W46

The full result also includes a relative line telling you how long ago, or how far in the future, the moment is, and every row has its own copy button.

Seconds, milliseconds, microseconds, nanoseconds

Different systems count at different resolutions, so the same instant can be written with 10, 13, 16 or 19 digits:

UnitExampleTypical sources
Seconds1700000000Unix date +%s, PHP time(), JWT exp and iat
Milliseconds1700000000000JavaScript Date.now(), Java System.currentTimeMillis()
Microseconds1700000000000000some databases and tracing systems
Nanoseconds1700000000000000000Go UnixNano(), GNU date +%s%N

Auto-detect looks at the size of the number. Values below 100,000,000,000 are read as seconds, then milliseconds up to 10^14, microseconds up to 10^17, and nanoseconds above that. A note under the input tells you which unit was assumed. A millisecond value from before March 1973 is small enough to look like seconds, so pick the unit yourself for very old dates. Decimal seconds such as 1700000000.5 are accepted, and results are shown to the millisecond.

Converting dates to timestamps

To go the other way, pick a date and time in the Date → timestamp panel; it is read in the selected time zone and shown as Unix seconds, milliseconds and ISO 8601. You can also type a date instead of a number in the timestamp box. How that date is read depends on what you type:

  • Date only, such as 2024-01-01, is taken as midnight UTC, giving 1704067200.
  • Date and time with Z or an offset, such as 2024-01-01T00:00:00+05:30, is exact: 1704047400.
  • Date and time without a zone is interpreted in your browser's local time zone, so add Z or an offset when you mean a specific zone.
  • Impossible dates, such as 2023-02-29, are rejected with an error instead of being rolled over into March.

Time zones

UTC is always shown. The Time zone list sets the zone used for the local rows and for the date picker: it starts on your browser's own zone and offers IANA zone names such as America/New_York, Europe/London or Asia/Kolkata. Abbreviations like EST are ambiguous and are not in the list. Daylight saving time is applied automatically for the date in question.

Leap seconds and the year 2038

Unix time treats every day as exactly 86,400 seconds, so the 27 leap seconds added to UTC since 1972 are simply not counted. This keeps date arithmetic simple, and it means a timestamp difference can be off by a second or so across a leap second.

Systems that store timestamps as signed 32-bit integers overflow after 2147483647, which is 2038-01-19T03:14:07Z. One second later the value wraps to −2147483648 and reads as December 13, 1901. Modern systems use 64-bit time values, and this converter uses JavaScript dates, which are unaffected.

Getting a timestamp in code

JavaScript   Math.floor(Date.now() / 1000)
Python       int(time.time())
PHP          time()
Go           time.Now().Unix()
Java         Instant.now().getEpochSecond()
MySQL        UNIX_TIMESTAMP()

For arithmetic on dates, such as adding 30 days or finding the gap between two moments, use the date and time calculator. The time converter turns large second counts into hours or days, the JWT decoder shows the exp and iat timestamps inside a token, and the cron expression parser helps when timestamps come from scheduled jobs.

Frequently asked questions

How do I know if a timestamp is in seconds or milliseconds?
Count the digits. For current dates, seconds have 10 digits and milliseconds have 13; microseconds have 16 and nanoseconds 19. The converter detects this automatically and states which unit it used.
Is a Unix timestamp in UTC or local time?
A Unix timestamp has no time zone: it counts seconds since midnight UTC on January 1, 1970, so it names the same instant everywhere. Only the displayed date and clock time change with the time zone.
What happens in 2038?
Signed 32-bit timestamps reach their maximum, 2147483647, at 03:14:07 UTC on January 19, 2038, and then overflow. Software that still stores time in 32-bit integers must move to 64-bit values before then.
Can a Unix timestamp be negative?
Yes. Negative values represent moments before the 1970 epoch; for example, −86400 is December 31, 1969 at 00:00:00 UTC. The converter accepts negative input.
Why is my converted date off by several hours?
Usually a time zone mix-up: the timestamp was produced from a local time that was treated as UTC, or the other way round. Compare the UTC line with the local line, and switch the time zone if needed, to see where the offset comes from.
Does Unix time include leap seconds?
No. Unix time assumes every day has exactly 86,400 seconds and ignores leap seconds, so it is not a true count of elapsed SI seconds since 1970.

Last updated October 3, 2026

Guides

Related tools

All Number Converter Convert a number to decimal, hexadecimal, octal, binary and any base from 2 to 36 at the same time. Roman Numeral Converter Convert numbers to Roman numerals and Roman numerals back to numbers (1–3999). URL Parser Break a URL into scheme, host, port, path, query parameters and fragment. Decodes values and parses many URLs at once. User Agent Parser Parse user agent strings to identify browser, version, rendering engine, operating system, device type and bots. vCard QR Code Generator Put your contact details in a vCard QR code for business cards and badges: name, company, phone, e-mail, website and address. What Is My Screen Resolution? See your screen resolution, browser viewport size, device pixel ratio, colour depth and media-query features instantly. WhatsApp Link Generator Create a wa.me click-to-chat link with a pre-filled message for your website, e-mail signature or QR code. Wi-Fi QR Code Generator Make a Wi-Fi QR code so guests can join your network by scanning — SSID, password and security type, printable PNG or SVG. API Tester (REST Client) Send GET, POST, PUT, PATCH and DELETE requests to REST APIs from your browser and inspect status, headers and pretty-printed JSON. Barcode Generator Generate Code 128, EAN-13, UPC-A, Code 39, ITF-14, ISBN, Data Matrix, PDF417 and more barcodes. Download PNG or SVG for free. Basic Auth Header Generator Build an HTTP "Authorization: Basic" header from username:password, or decode an existing Basic auth header back to credentials. Broken Link Checker Find broken links on a web page: every link is checked and 404s, errors and redirects are listed.