Skip to content
HandyKit

Unix Timestamp Converter

Turn a Unix timestamp into a readable date in any time zone, or a date into a timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected automatically. Convert many at once, or get the start and end of any day, month or year.

Runs in your browser. Your input is never uploaded or stored.

Current Unix time

Seconds

…

Milliseconds

…

Timestamp to date

Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds. The unit is detected from its length.

Date to timestamp

Pick a date and time to get its Unix timestamp.

Convert many timestamps

Each line’s unit is detected from its length. Paste from a log or a spreadsheet column.

Start and end of a day, month or year

What is a Unix timestamp?

A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. For example, 1760000000 is 9 October 2025 at 08:53:20 UTC.

Because it is a single number with no time zone, a timestamp is easy to store, compare and sort, which is why databases, APIs, log files and JWTs use it. Converting it into a date and time is only needed when a person has to read it.

How to convert a Unix timestamp

  1. Paste the timestamp under Timestamp to date. The unit is detected from the number of digits.
  2. Choose a time zone under Show in, or keep your own.
  3. Read the date in that zone, in UTC as ISO 8601, as an HTTP date, and relative to now. Select Copy beside any value.
  4. To go the other way, pick a date, time and time zone under Date to timestamp.

Seconds, milliseconds, microseconds and nanoseconds

Different systems count in different units, and mixing them up is the most common timestamp bug:

  • Seconds (10 digits today): Unix and Linux, PHP time(), PostgreSQL extract(epoch from …), JWT claims.
  • Milliseconds (13 digits): JavaScript Date.now(), Java System.currentTimeMillis().
  • Microseconds (16 digits): Python time.time_ns() // 1000, many databases’ internal clocks.
  • Nanoseconds (19 digits): Go time.Now().UnixNano(), Python time.time_ns().

If a converted date lands in 1970, a millisecond value was probably read as seconds, or the other way round if it lands far in the future.

Time zones and daylight saving time

A timestamp is the same everywhere; only its display changes. 1760000000 is 09:53:20 in London (British Summer Time, UTC+1), 14:23:20 in Mumbai (UTC+5:30) and 04:53:20 in New York (Eastern Daylight Time, UTC−4).

Going from a date to a timestamp needs a time zone, and daylight saving time causes two edge cases. When clocks go forward, an hour is skipped: 02:30 on 8 March 2026 never happens in New York. When clocks go back, an hour happens twice: 01:30 on 1 November 2026 occurs once in daylight time and again in standard time. This converter tells you when a time falls into either case.

The year 2038 problem

Older systems store Unix time as a signed 32-bit integer, whose largest value is 2147483647: 19 January 2038 at 03:14:07 UTC. One second later it wraps to a negative number, which reads as December 1901. Systems that use 64-bit integers, now the norm, are not affected. Timestamps before 1970 are simply negative: -86400 is 31 December 1969.

Getting and converting timestamps in code

The current Unix time in seconds, and a timestamp turned into a UTC date, in common languages and tools:

LanguageCurrent time (seconds)Timestamp to date
JavaScript, Node.jsMath.floor(Date.now() / 1000)new Date(1760000000 * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(1760000000, tz=timezone.utc)
Java, KotlinInstant.now().getEpochSecond()Instant.ofEpochSecond(1760000000)
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(1760000000)
Gotime.Now().Unix()time.Unix(1760000000, 0).UTC()
PHPtime()gmdate('c', 1760000000)
RubyTime.now.to_iTime.at(1760000000).utc
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()UNIX_EPOCH + Duration::from_secs(1760000000)
SwiftInt(Date().timeIntervalSince1970)Date(timeIntervalSince1970: 1760000000)
PostgreSQLEXTRACT(EPOCH FROM now())::bigintto_timestamp(1760000000)
MySQLUNIX_TIMESTAMP()FROM_UNIXTIME(1760000000)
SQLiteunixepoch()datetime(1760000000, 'unixepoch')
Shell (Linux)date +%sdate -u -d @1760000000
Shell (macOS)date +%sdate -u -r 1760000000
PowerShell[DateTimeOffset]::UtcNow.ToUnixTimeSeconds()[DateTimeOffset]::FromUnixTimeSeconds(1760000000)
Excel, Sheets=(NOW()-DATE(1970,1,1))*86400 (in a UTC sheet)=A1/86400+DATE(1970,1,1), formatted as a date

MySQL's FROM_UNIXTIME and PostgreSQL's to_timestamp show the result in the session's time zone; the others above give UTC. For milliseconds, JavaScript's Date.now() and Java's System.currentTimeMillis() return them directly.

Frequently asked questions

Is a Unix timestamp in UTC?

A Unix timestamp counts seconds since 1 January 1970 at midnight UTC, so it describes the same instant everywhere and has no time zone of its own. Time zones only matter when you turn it into a calendar date and clock time.

How do I tell seconds from milliseconds?

By the number of digits. A present-day timestamp has 10 digits in seconds (1760000000), 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. This converter detects the unit that way, and you can override it.

Why is my converted date in 1970 or thousands of years away?

Almost always a unit mix-up. Milliseconds read as seconds land tens of thousands of years in the future, and seconds read as milliseconds land in January 1970. Check the unit the converter reports.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer can only count up to 2,147,483,647 seconds, which is 19 January 2038 at 03:14:07 UTC. One second later the value overflows to a date in 1901. Modern systems use 64-bit integers, which last for billions of years.

Do Unix timestamps include leap seconds?

No. Unix time treats every day as exactly 86,400 seconds and ignores leap seconds, so it is not a perfect count of elapsed seconds. For almost every application this does not matter.

Is anything sent to a server?

No. Conversions use your browser’s built-in time zone database and run entirely on your device.

Guides

  • · 5 min read

    Cron Expression Examples, Explained

    Ready-to-use cron expressions for every 5 minutes, hourly, daily, weekday and monthly jobs, how each field works, and the mistakes that catch people out.

  • · 5 min read

    What Is a JWT? Structure, Claims and Security

    A JSON Web Token is three Base64URL parts: header, payload and signature. Learn what each holds, how to read the claims, and why decoding is not verifying.