The Date Nerd
A cartoon owl in round glasses, thinking

Unix Timestamp Converter

Epoch time to a readable date, and back again. Runs in your browser.

Runs in your browser. Nothing you type is uploaded.

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, not counting leap seconds. It is a single number that means the same moment everywhere, which is why databases, APIs, logs and file systems use it. Type one into the box above and you get the date and time in UTC and in your own time zone, plus the same moment in the other formats programmers meet.

Seconds, milliseconds, microseconds or nanoseconds?

The converter guesses the unit from the size of the number: up to 11 digits is seconds (1700000000), 13 digits is milliseconds (1700000000000, what JavaScript and Java use), 16 digits is microseconds and 19 digits is nanoseconds (Go's UnixNano). The guess can be wrong for very early dates, since a millisecond value before March 1973 looks like seconds, so you can choose the unit yourself.

Convert a date to a timestamp

Pick a date and time with the date picker, or type an ISO 8601 date such as2026-12-25T09:30:00Z or 2026-12-25 09:30:00+01:00. If the text has noZ or offset it is read in the time zone chosen above. The timestamp appears in the table of formats, ready to copy.

Famous timestamps

TimestampDate and time (UTC)Why it matters
01970-01-01T00:00:00ZThe Unix epoch: Where Unix time starts
10000000002001-09-09T01:46:40ZOne billion seconds: Sunday 9 September 2001
12345678902009-02-13T23:31:30Z1234567890: Friday 13 February 2009
17000000002023-11-14T22:13:20Z1700000000: Tuesday 14 November 2023
20000000002033-05-18T03:33:20ZTwo billion seconds: Wednesday 18 May 2033
21474836472038-01-19T03:14:07ZThe 32-bit limit (2^31 - 1): The Year 2038 problem: signed 32-bit time runs out

Get the current Unix time in code

LanguageCurrent Unix time (seconds)Timestamp to date
JavaScriptMath.floor(Date.now() / 1000)new Date(1700000000 * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(1700000000, timezone.utc).isoformat()
Gotime.Now().Unix()time.Unix(1700000000, 0).UTC().Format(time.RFC3339)
PHPtime()gmdate('c', 1700000000)
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(1700000000L)
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(1700000000)
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()chrono::DateTime::from_timestamp(1700000000, 0)
Bash (GNU date)date +%sdate -u -d @1700000000
MySQLSELECT UNIX_TIMESTAMP();SELECT FROM_UNIXTIME(1700000000);
PostgreSQLSELECT EXTRACT(EPOCH FROM now());SELECT to_timestamp(1700000000);
Excel=(NOW()-DATE(1970,1,1))*86400=A1/86400+DATE(1970,1,1)

FAQ

What is the current Unix timestamp?

The page starts with it: press Now to refresh. There is also a live Unix time clock.

Does a Unix timestamp have a time zone?

No. It always counts from the same UTC moment. Time zones only matter when you turn it into a calendar date and time.

What is the Year 2038 problem?

Systems that store Unix time in a signed 32-bit integer run out at 03:14:07 UTC on 19 January 2038 (timestamp 2147483647). Modern systems use 64 bits, which lasts for billions of years.

Which dates are supported?

Years 1 to 9999. Dates use the Gregorian calendar throughout, and leap seconds are ignored, as Unix time ignores them.

Is anything uploaded?

No. The conversion happens in your browser. The link button only copies a URL that holds your input.

Related: ISO 8601 date format converter.

More date tools

  • Days between dates: How many days, weeks, months and years there are between two dates.
  • Date calculator: Add or subtract days, weeks, months and years from a date.
  • Days until a date: A live countdown to any date, with a link you can share.
  • Days until Christmas: How many days (and sleeps) are left until Christmas Day.
  • Age calculator: Exact age in years, months and days, and when the next birthday is.
  • Week number: The ISO week number for today or any date, and a table of every week in the year.
  • Financial week: The financial, fiscal or tax week number for any date, including the UK tax year.
  • Business days calculator: Count or add working days, skipping weekends and UK bank holidays.
  • Day of the week: Find out which weekday any date falls on.
  • Current Unix time: The time now as a live Unix timestamp, with one-click copy.
  • ISO 8601 converter: Any date as ISO 8601, RFC 3339, RFC 2822, week date, SQL, Excel and Unix time.