Unix Timestamp Converter

Timestamps to dates and back, in any unit

Current Unix time

 

 

Timestamp to date

UTC
Thu, 01 Jan 2026 00:00:00 GMT
ISO 8601
2026-01-01T00:00:00.000Z
Your time zone
…
Relative
…
Seconds
1767225600
Milliseconds
1767225600000

Date to timestamp

Time zone of the date
Seconds
1767225600
Milliseconds
1767225600000
ISO 8601
2026-01-01T00:00:00.000Z

Unix Timestamp Converter guide

A Unix timestamp counts the seconds since midnight UTC on 1 January 1970. It is how servers, databases, and logs store time, because a single number sorts, compares, and crosses time zones without ambiguity. This converter turns a timestamp into a readable date, and a date back into a timestamp.

Seconds, milliseconds, or more

The number of digits usually tells you the unit, and the converter picks it automatically. Choose one under Read as if it guesses wrong.

  • Seconds, 10 digits. The classic Unix timestamp, used by most servers, databases, and APIs.
  • Milliseconds, 13 digits. What JavaScript's Date.now() and Java's System.currentTimeMillis() return.
  • Microseconds, 16 digits. Common in Python's datetime and in database logs.
  • Nanoseconds, 19 digits. Used by Go's time.UnixNano(), InfluxDB, and OpenTelemetry traces.

Time zones

A timestamp is the same instant everywhere; only its display changes. The results show it in UTC and in your own time zone. When converting a date to a timestamp, choose whether the date you entered is in UTC or in your time zone, since the same wall-clock time is a different instant in each.

The year 2038 problem

Systems that store timestamps as signed 32-bit integers run out at 2147483647, which is 03:14:07 UTC on 19 January 2038. After that the number wraps to 1901. Modern systems use 64-bit timestamps, which last for billions of years.

Getting the current timestamp in code

// JavaScript (milliseconds)
Date.now()

# Python (seconds)
import time; time.time()

# Bash
date +%s

-- PostgreSQL
SELECT EXTRACT(EPOCH FROM now());

-- MySQL
SELECT UNIX_TIMESTAMP();

Frequently asked questions

What is a Unix timestamp?
The number of seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. For example, 1767225600 is midnight UTC on 1 January 2026.
How do I convert a timestamp to a date?
Paste it into the Timestamp box. The date appears in UTC, ISO 8601, and your own time zone, along with how long ago or ahead it is.
Is my timestamp in seconds or milliseconds?
Count the digits. 10 digits is seconds and 13 is milliseconds for dates around today. The converter detects this for you.
Can a Unix timestamp be negative?
Yes. Negative timestamps are dates before 1970; -86400 is 31 December 1969.
Do Unix timestamps include leap seconds?
No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are left out.