Unix Timestamp Converter

Turn epoch time into a readable date in any time zone, or a date into a Unix timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected for you.

Current Unix timestamp

1795420630

Milliseconds:1795420630000

Monday, November 23, 2026 at 7:57:10 AM UTC

Read as seconds (10 digits). Wrong? Pick the unit.

Showing 1795420630 — 2026-11-23T07:57:10Z

Unix timestamp (seconds)

1795420630

Milliseconds

1795420630000

In UTC

Monday, November 23, 2026 at 7:57:10 AM UTC

ISO 8601 (UTC)

2026-11-23T07:57:10Z

ISO 8601 with offset

2026-11-23T07:57:10Z

UTC (HTTP date)

Mon, 23 Nov 2026 07:57:10 GMT

RFC 2822 (email date)

Mon, 23 Nov 2026 07:57:10 +0000

Relative

now

Day of week

Monday

ISO week · day of year

Week 48 of 2026 · Day 327

Microseconds

1795420630000000

Nanoseconds

1795420630000000000

Time zone · UTC offset

UTC (UTC+00:00)

Date & time to Unix timestamp

Read in your time zone. Change it with Time zone above.

Batch convert timestamps

One value per line: timestamps, dates or whole log lines (the first timestamp or ISO date in a line is used). Uses the Unit and Time zone above.

Why convert Unix timestamps?

Logs, databases, APIs and JWTs store time as a raw count of seconds or milliseconds: compact and unambiguous for computers, unreadable for people. Paste a value here to see it in UTC, in any time zone, as ISO 8601 and RFC 2822 and as relative time at once, or go the other way and turn a date into the epoch value your code expects.

How to convert a Unix timestamp to a date

  1. Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds, or a date such as 2025-11-27 12:00, and press Convert or Enter. The unit is read from the number of digits and shown under the box; pick one from Unit to override it.
  2. Choose a Time zone to see the result there. Dates you type or pick without a zone are read in that zone too.
  3. Copy any format with its copy button, or press Share link to send someone the same conversion.
  4. To go from a date to a timestamp, fill in the Date & time card and press Get timestamp. For many values at once, paste them into Batch convert.

What is a Unix timestamp?

A Unix timestamp, also called epoch time or POSIX time, is the number of seconds since 00:00:00 UTC on January 1, 1970, a moment known as the Unix epoch. It carries no time zone, so the same number means the same instant everywhere: 1764244800 is 12:00 UTC on Thursday, November 27, 2025, which was 7:00 AM in New York and 9:00 PM in Tokyo.

Every day counts as exactly 86,400 seconds (leap seconds are ignored), so date maths is plain addition: add 86400 for tomorrow, 604800 for next week. Dates before 1970 are negative; -86400 is December 31, 1969.

Seconds, milliseconds, microseconds or nanoseconds?

Mixing up units is the most common mistake, and the digit count gives it away. For present-day dates:

DigitsUnitExampleTypical source
10Seconds1764244800Unix shells, PHP, most databases, JWT exp and iat
13Milliseconds1764244800000JavaScript Date.now(), Java currentTimeMillis()
16Microseconds1764244800000000PostgreSQL internals, many tracing tools
19Nanoseconds1764244800000000000Go UnixNano(), Python time.time_ns(), OpenTelemetry

With Unit on Auto-detect, up to 12 digits are read as seconds, 13 to 15 as milliseconds, 16 to 18 as microseconds and 19 or more as nanoseconds, and the unit used is shown under the input. One catch: a millisecond value from before September 9, 2001 has only 12 digits, so it is read as seconds and lands tens of thousands of years in the future. Pick Milliseconds and the same number converts correctly. Microsecond and nanosecond values keep every digit, so the ISO 8601 result shows the full fraction, such as 2025-11-27T12:00:00.123456789Z.

Time zones, UTC and ISO 8601

A timestamp has no time zone; only its display does. The results show the instant in UTC (ISO 8601 with a trailing Z, and the HTTP date format), and in the zone you choose: as a full date, as ISO 8601 with that zone's offset, such as 2025-11-27T07:00:00-05:00, and as an RFC 2822 date like the one in an email header. The offset is the one in force on that date, so daylight saving time is handled, including half-hour zones such as India (UTC+05:30) and historic offsets.

Text you type is read in the selected zone unless it names its own: 2025-11-27 12:00 means noon in that zone, while 2025-11-27T12:00Z, 12:00+05:30 or 12:00 GMT are exact anywhere. A written date must include the year; some browsers silently assume 2001 when it is missing, so the converter asks instead of guessing.

On daylight-saving change days some local times don't exist and others happen twice. In New York, 2:30 AM on March 9, 2025 was skipped (the clocks jumped from 2:00 to 3:00), so the converter shows 3:30 AM and says so; 1:30 AM on November 2, 2025 happened twice, so it uses the first one and tells you the second is an hour later.

Worked examples

  • A JWT expiry. A token with "exp": 1764244800 expires at 2025-11-27 12:00:00 UTC. Paste the claim value as it is; our JWT decoder does this for every claim in a token.
  • A JavaScript value. 1764244800000 has 13 digits, so it is read as milliseconds: the same instant as above. Forced to seconds it would be the year 57,876.
  • A log line. Paste [worker] ts=1764244800123 job done into Batch convert and it finds 1764244800123 and converts it to 2025-11-27T12:00:00.123Z.
  • A Discord event time. Discord turns <t:1764244800:F> into the date and time in each reader's own time zone. The Discord timestamp generator writes all nine styles from words like “Sat 8pm IST” and shows what members in other zones will see.
  • A meeting time to epoch. Set Time zone to Asia/Tokyo, pick November 27, 2025, 9:00 PM and press Get timestamp: the answer is 1764244800, because 9 PM in Tokyo (UTC+09:00) is noon UTC.

Common mistakes

  • Seconds where milliseconds are expected. new Date(1764244800) in JavaScript gives January 21, 1970, because the constructor wants milliseconds. Multiply by 1,000 first.
  • Storing local time as if it were UTC. A timestamp built from a local clock reading without its zone is off by the UTC offset, and twice a year by an extra hour. Convert to UTC at the edge and store the epoch value.
  • Assuming every month or year has the same length. 2,592,000 seconds is 30 days, not "one month". To add calendar months or count days between dates, use the date calculator.
  • Confusing spreadsheet serial dates with Unix time. Excel's 45988 counts days since 1900, not seconds since 1970; use the formulas below to convert between them.
  • 32-bit storage. A signed 32-bit integer runs out in January 2038 (see below). Use a 64-bit type for anything that stores times.

Time spans in seconds

SpanSeconds
1 minute60
1 hour3,600
1 day86,400
1 week604,800
30 days2,592,000
Average Gregorian month (30.436875 days)2,629,746
Common year (365 days)31,536,000
Leap year (366 days)31,622,400
Average Gregorian year (365.2425 days)31,556,952

The year 2038 problem

Systems that store Unix time in a signed 32-bit integer can count only to 2147483647: 03:14:07 UTC on January 19, 2038. One second later the value wraps to -2147483648, read as December 13, 1901. Most modern systems use 64-bit time, but embedded devices, old file formats and 32-bit database columns remain at risk; MySQL's TIMESTAMP type still ends at that second. This converter uses 64-bit numbers and works for any date a browser can represent.

Get and convert Unix timestamps in code

JavaScript / TypeScript

Math.floor(Date.now() / 1000);              // current Unix time, seconds
Date.now();                                  // milliseconds

new Date(1764244800 * 1000).toISOString();   // "2025-11-27T12:00:00.000Z"
Date.parse("2025-11-27T12:00:00Z") / 1000;   // 1764244800

// In a named time zone
new Date(1764244800 * 1000).toLocaleString("en-US", { timeZone: "America/New_York" });
// "11/27/2025, 7:00:00 AM"

Python

import time
from datetime import datetime, timezone
from zoneinfo import ZoneInfo

int(time.time())                     # current Unix time, seconds
time.time_ns()                       # nanoseconds

datetime.fromtimestamp(1764244800, tz=timezone.utc)
# 2025-11-27 12:00:00+00:00
datetime.fromtimestamp(1764244800, tz=ZoneInfo("Asia/Tokyo"))
# 2025-11-27 21:00:00+09:00

int(datetime(2025, 11, 27, 12, tzinfo=timezone.utc).timestamp())
# 1764244800

SQL

-- PostgreSQL
SELECT extract(epoch FROM now())::bigint;
SELECT to_timestamp(1764244800);              -- timestamptz

-- MySQL
SELECT UNIX_TIMESTAMP();
SELECT FROM_UNIXTIME(1764244800);             -- in the session time zone

-- SQLite
SELECT strftime('%s', 'now');
SELECT datetime(1764244800, 'unixepoch');     -- 2025-11-27 12:00:00

Bash (Linux and macOS)

date +%s                                # current Unix time
date -u -d @1764244800                  # Linux (GNU date)
date -u -r 1764244800                   # macOS (BSD date)
# Thu Nov 27 12:00:00 UTC 2025
date -u -d "2025-11-27 12:00:00" +%s    # Linux: date to timestamp
TZ=Asia/Tokyo date -d @1764244800       # in another zone

Go

time.Now().Unix()                          // seconds
time.Now().UnixMilli()                     // milliseconds

time.Unix(1764244800, 0).UTC()             // 2025-11-27 12:00:00 +0000 UTC
time.Date(2025, 11, 27, 12, 0, 0, 0, time.UTC).Unix()   // 1764244800

Java

Instant.now().getEpochSecond();            // seconds
System.currentTimeMillis();               // milliseconds

Instant.ofEpochSecond(1764244800);        // 2025-11-27T12:00:00Z
ZonedDateTime.of(2025, 11, 27, 12, 0, 0, 0, ZoneOffset.UTC).toEpochSecond();
// 1764244800

PHP

time();                                   // seconds
gmdate('Y-m-d H:i:s', 1764244800);        // "2025-11-27 12:00:00" (UTC)
date('r', 1764244800);                    // RFC 2822, in the default time zone
strtotime('2025-11-27 12:00:00 UTC');     // 1764244800

C#

DateTimeOffset.UtcNow.ToUnixTimeSeconds();
DateTimeOffset.FromUnixTimeSeconds(1764244800);   // 11/27/2025 12:00:00 PM +00:00
new DateTimeOffset(2025, 11, 27, 12, 0, 0, TimeSpan.Zero).ToUnixTimeSeconds();
// 1764244800

Excel and Google Sheets

=A1/86400 + DATE(1970,1,1)           seconds in A1 → date (format the cell as a date)
=A1/86400000 + DATE(1970,1,1)        milliseconds → date
=(A1 - DATE(1970,1,1)) * 86400       date in A1 → Unix seconds
Both give UTC; add or subtract hours/24 for another zone.

Reference timestamps

Unix timeDate (UTC)
-2147483648December 13, 1901, 20:45:52 (signed 32-bit minimum)
0January 1, 1970, 00:00:00 (the Unix epoch)
946684800January 1, 2000 (Y2K)
1000000000September 9, 2001, 01:46:40 (first 10-digit timestamp)
1700000000November 14, 2023, 22:13:20
1764244800November 27, 2025, 12:00:00
1767225600January 1, 2026
2000000000May 18, 2033, 03:33:20
2147483647January 19, 2038, 03:14:07 (signed 32-bit limit)
4102444800January 1, 2100
9999999999November 20, 2286, 17:46:39 (last 10-digit timestamp)

Related tools: count the days between two dates with the date calculator, time an event with the countdown timer, read the claims inside a token with the JWT decoder, or tidy an API response with the JSON formatter.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Paste the number into the converter and press Convert or Enter. You get the date in UTC, in the time zone you choose, as ISO 8601 and RFC 2822, and as relative time. In a spreadsheet, =A1/86400+DATE(1970,1,1) turns a seconds timestamp in A1 into a UTC date you can format.

How do I convert a date to a Unix timestamp?

Choose the time zone the date is in, fill in the Date & time card and press Get timestamp; the seconds and milliseconds appear next to the button with copy buttons. You can also type a date such as 2025-11-27 12:00 into the main box, or an ISO 8601 string ending in Z, such as 2025-11-27T12:00:00Z, for a UTC time.

What is the current Unix timestamp?

The live clock at the top of the page shows it, in seconds and milliseconds, updated every second from your device's clock. The copy buttons next to it copy the value at the moment you press them.

Is a Unix timestamp always in UTC?

Yes. It counts seconds since 00:00:00 UTC on January 1, 1970, so it has no time zone of its own and means the same instant everywhere. Only the way it is displayed depends on a zone, which is why the converter shows it in UTC and in the zone you pick.

How can I tell if a timestamp is in seconds or milliseconds?

Count the digits. A present-day value has 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. With Unit on Auto-detect the converter uses that rule and says which unit it used; a millisecond timestamp from before September 9, 2001 has only 12 digits, so choose Milliseconds for those.

How do I convert a timestamp to a specific time zone?

Pick the zone from the Time zone list (every IANA zone your browser knows, such as America/New_York or Asia/Kolkata). The result shows the full date there, ISO 8601 with that zone's offset, an RFC 2822 date and the offset in force on that date, so daylight saving time is taken into account. Your choice is remembered on this device.

Can I convert many timestamps at once?

Yes. Paste one value per line into Batch convert: timestamps in any unit, dates, or whole log lines, in which the first timestamp or ISO date is found and converted. The table shows each line in UTC and in your chosen zone, and you can copy it as CSV or download a CSV file.

Can a Unix timestamp be negative?

Yes. Negative values count back from 1970: -86400 is December 31, 1969, and -2147483648, the smallest signed 32-bit value, is December 13, 1901. The converter accepts negative timestamps, decimals and exponent notation such as 1.7e9.

Do Unix timestamps count leap seconds?

No. Unix time treats every day as exactly 86,400 seconds, so converting to calendar dates is simple arithmetic. The trade-off is that the real number of seconds elapsed since 1970 is higher than the timestamp by the 27 leap seconds inserted since 1972, and a time such as 23:59:60 cannot be written as a Unix timestamp.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow after 2147483647, which is 03:14:07 UTC on January 19, 2038, and wrap around to December 1901. This converter uses 64-bit numbers, so it handles dates far beyond 2038.

What date and time formats can I type?

A Unix timestamp in seconds, milliseconds, microseconds or nanoseconds (with an optional decimal part, thousands separators or exponent notation), ISO 8601 such as 2025-11-27T12:00:00.123456Z or 2025-11-27 12:00+05:30, a written date such as Nov 27, 2025 12:00 PM, or the word now. Text without its own zone is read in the selected time zone, and a written date must include the year.

Is my data sent anywhere?

No. Every conversion runs in your browser with JavaScript's date and Intl functions, and nothing you paste is uploaded. A shared link keeps the value after the # sign, which browsers do not send to the server. Once the page has loaded it also works offline.

Advertisement