SuperDevTools

Unix Timestamp Converter (Epoch Converter)

Current Unix timestamp

Seconds0

Milliseconds0

Tip: press the space bar to pause the clock.

Timestamp → date

Date → timestamp

Useful start and end points

PeriodStart UTCEnd UTCStart localEnd local
Day
ISO week (Monday)
Month
Year

Batch conversion

In your language

LanguageCurrent timestamp (seconds)Timestamp → date
JavaScriptMath.floor(Date.now() / 1000)new Date(ts * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(ts, timezone.utc)
PHPtime()gmdate('c', $ts)
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(ts)
Gotime.Now().Unix()time.Unix(ts, 0).UTC()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(ts)
MySQLSELECT UNIX_TIMESTAMP();SELECT FROM_UNIXTIME(ts);
PostgreSQLSELECT EXTRACT(EPOCH FROM now())::bigint;SELECT to_timestamp(ts);
Shelldate +%sdate -u -d @1700000000

Year 2038: a signed 32-bit integer stops at 2147483647, which is 19 January 2038 at 03:14:07 UTC. One second later it wraps to -2147483648 (13 December 1901). Store timestamps in 64 bits.

Everything is calculated in your browser: no value is sent anywhere.

Turn epoch time into a readable date, and back

A Unix timestamp looks like a random number, such as 1700000000, yet it marks one exact moment: 14 November 2023 at 22:13:20 UTC. This epoch converter works both ways. Paste a timestamp to get the date in UTC, in your device's time zone and in any zone you pick, or enter a date to get its timestamp.

The “Current Unix timestamp” clock at the top runs in seconds and milliseconds. “Copy seconds” and “Copy milliseconds” put the value on your clipboard, and “Pause” (or the space bar) freezes the display.

How to convert a timestamp to a date

  1. Paste the value into “Unix timestamp”, or click “Now”.
  2. Leave the unit on “Auto-detect”. The tool counts the digits: up to 11 digits means seconds, 12 to 14 milliseconds, 15 to 17 microseconds, and more than that nanoseconds. You can also force the unit.
  3. Pick a “Time zone”, such as America/New_York, Europe/London or Australia/Sydney. The results show ISO 8601 in UTC, the full date in UTC, in local time and in the selected zone, RFC 2822, and a relative form like “3 days ago”. Every line has its own “Copy” button.

The “Date → timestamp” block does the reverse from a date, a time and a zone. For example, 14 November 2026 at 12:00 in Europe/Paris gives 1794654000, because Paris is on UTC+1 that day, so it is 11:00 UTC. “Batch conversion” takes one value per line, either a timestamp or an ISO 8601 date like 2038-01-19T03:14:07Z. “Useful start and end points” lists the first and last second of the day, ISO week, month and year, in UTC and in local time.

What Unix time actually counts

Unix time is the number of seconds since 1 January 1970 at 00:00:00 UTC, a moment called the epoch. So 0 is 1970-01-01T00:00:00Z and 86400 is midnight the next day, since a day has 86,400 seconds. Negative values go back before 1970: -86400 is 31 December 1969 at 00:00 UTC. Leap seconds are ignored, so every day in Unix time lasts exactly 86,400 seconds.

Seconds or milliseconds?

Unix tools, PHP, Python and most databases count in seconds, which is 10 digits today. JavaScript and Java count in milliseconds, 13 digits: 1700000000000 is the same moment as 1700000000.

UTC and time zones

A timestamp has no time zone. It is the same number in New York, London and Sydney; only the display changes. 1700000000 shows as 17:13:20 in New York and 22:13:20 in London. Daylight saving time creates two edge cases. On 8 March 2026, 02:30 does not exist in New York: the tool says so and moves it forward one hour to 03:30 (1772955000). On 1 November 2026, 01:30 happens twice there: the tool keeps the first one (1793511000) and shows the second (1793514600).

The year 2038 problem

Stored in a signed 32-bit integer, a timestamp tops out at 2147483647, which is 19 January 2038 at 03:14:07 UTC. One second later it wraps around to -2147483648, 13 December 1901. The tool shows a warning whenever a value falls outside that range. Old embedded software and some INT columns are still at risk.

Timestamps in databases and APIs

Timestamps date log lines, sessions, auth tokens and orders. They sort and compare like plain numbers, with no time zone confusion. MySQL converts with UNIX_TIMESTAMP() and FROM_UNIXTIME(); PostgreSQL with extract(epoch from now()) and to_timestamp(). The “In your language” table gives the one-liner for JavaScript, Python, PHP, Java, Go, C#, MySQL, PostgreSQL and the shell.

Frequently asked questions

Why does my timestamp convert to a date in 1970?

The value is too small for the unit, usually seconds read as milliseconds: 1700000000 milliseconds is only about 19 days and 16 hours after 1 January 1970. Set “Unit” back to “Auto-detect”.

Does the timestamp change with daylight saving time?

No. The counter moves one second per second all year round. Only the conversion to local time takes daylight saving into account.

Are my values sent anywhere?

No. Every calculation runs in your browser. Only the unit and time zones you chose are remembered on your device for your next visit.