Unix Timestamp Converter (Epoch ↔ Date)

Enter a timestamp to see it as a UTC date and your local time, or enter a date to get its timestamp. The converter tells 10-digit (seconds) and 13-digit (milliseconds) values apart automatically.

Current Unix timestamp (seconds)
-
Milliseconds: -

Timestamp → Date

Unit

Date → Timestamp

Seconds (10 digits)
-
Milliseconds (13 digits)
-

How to use the Unix Timestamp Converter

  1. The current Unix timestamp updates live at the top of the page. Copy it in seconds or milliseconds with one click.
  2. Type a number in Timestamp → Date to see it in UTC, in ISO 8601 format, in your device's local time and as a relative time such as "3 d ago."
  3. The unit is picked automatically from the number of digits. You can also set it to seconds or milliseconds yourself.
  4. In Date → Timestamp, choose a date, a time and a time zone (pick UTC or This device's time zone) to get the value in seconds and milliseconds.

What is a Unix timestamp (epoch time)?

A Unix timestamp is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970, a moment known as the Unix epoch. The value is the same everywhere in the world no matter the time zone, so server logs, databases and API responses use it all the time to store dates.

  • 0 → 1970-01-01 00:00:00 UTC
  • 1,000,000,000 → 2001-09-09 01:46:40 UTC
  • 1,700,000,000 → 2023-11-14 22:13:20 UTC

10-digit vs. 13-digit timestamps

A 10-digit number counts seconds, and a 13-digit number counts milliseconds (thousandths of a second). On Linux, PHP's time() and Python's time.time() usually return seconds. JavaScript's Date.now() and Java's System.currentTimeMillis() return milliseconds. Divide a millisecond value by 1,000 to get seconds.

EnvironmentGet the current timestampUnit
JavaScriptDate.now()Milliseconds
Pythontime.time()Seconds (decimal)
JavaSystem.currentTimeMillis()Milliseconds
Linux shelldate +%sSeconds
MySQLUNIX_TIMESTAMP()Seconds

Converting a timestamp to your local time

A timestamp is always based on UTC. To get local time, add or subtract your offset from UTC. For example, New York is UTC−5 in winter (EST) and UTC−4 in summer (EDT). London is UTC+0 in winter (GMT) and UTC+1 in summer (BST). Sydney is UTC+10 (AEST) or UTC+11 during daylight saving (AEDT). Because of daylight saving time, the offset for the same city depends on the date. The This device row in the converter handles this for you using your browser's time zone settings.

In Excel or Google Sheets, you can turn a timestamp in seconds into a date with =(A1/86400)+DATE(1970,1,1). This divides by the length of a day (86,400 seconds) and adds January 1, 1970, which gives the time in UTC. To shift it to a fixed offset, add hours as a fraction of a day, for example -5/24 for US Eastern Standard Time. Format the cell as a date and time.

What is the Year 2038 problem?

Older systems that store timestamps as signed 32-bit integers can only go up to 2,147,483,647, which is 03:14:07 UTC on January 19, 2038. One second later the value overflows into a negative number and wraps back to December 1901. This is called the Year 2038 problem. Modern operating systems and programming languages use 64-bit integers and don't have this issue.

Frequently asked questions

How can I tell if a timestamp is in seconds or milliseconds?
For present-day dates, a 10-digit value is in seconds and a 13-digit value is in milliseconds. This converter treats any value of 100 billion or more as milliseconds.
Why is my converted time off by several hours?
The difference usually comes from reading the timestamp as UTC in one place and as local time in another. The gap equals your time zone's offset from UTC, for example 5 hours for New York in winter or 1 hour for London in summer.
Can I convert dates before 1970?
Yes. Dates before 1970 are written as negative timestamps. For example, -86400 is 00:00 UTC on December 31, 1969.
Are leap seconds included?
No. Unix time leaves out leap seconds by definition, so this converter counts every day as exactly 86,400 seconds.
Is my data sent anywhere?
No. All conversions happen in your browser, and nothing you type is uploaded.

Last updated: 2026-10-06