Skip to content
JustTools

Unix Timestamp Converter

Turn Unix timestamps into readable dates in any time zone — and dates back into epoch seconds or milliseconds — with automatic unit detection, every common format and a converter for timestamps inside logs.

Runs in your browser Free · no sign-up

At a glance

  • Shows the current Unix time live, in seconds and milliseconds, ready to copy.
  • Detects the unit of a timestamp — seconds, milliseconds, microseconds or nanoseconds — and keeps nanosecond precision.
  • Converts to ISO 8601, RFC 2822/HTTP date, a readable date and “3 days ago”, in any IANA time zone, with day of the year and ISO week.
  • Turns a date and time in any zone back into epoch time, handling daylight-saving changes correctly.
  • Also reads and writes Excel serial dates, Windows FILETIME/LDAP, WebKit/Chrome time, Apple Cocoa time and Julian days.
  • Finds the 10- and 13-digit timestamps in pasted logs or JSON and adds the date next to each one.

Step by step

How to convert a Unix timestamp

  1. 1

    Paste the timestamp

    Enter it under Timestamp to date — seconds, milliseconds or more are detected automatically.

  2. 2

    Choose a time zone

    Pick your zone, UTC or any other, to see the local date and time.

  3. 3

    Copy the format you need

    Copy ISO 8601, the readable date or any other format from the list.

Features

Everything you need, nothing you don’t

Any unit

Paste a 10, 13, 16 or 19-digit timestamp — the unit is detected for you.

Every time zone

All IANA zones from your browser, with correct offsets for the date, including DST.

Both directions

Epoch to date, and date to epoch — or paste any date text to inspect it.

Developer formats

Excel, LDAP/Active Directory, Chrome history, Apple and Julian timestamps in one place.

Log decoder

Make server logs readable by annotating or replacing every Unix timestamp.

Private

Everything runs in your browser; nothing you paste is sent anywhere.

Get the current Unix time in code

LanguageSecondsMilliseconds
JavaScriptMath.floor(Date.now() / 1000)Date.now()
Pythonint(time.time())time.time_ns() // 1_000_000
JavaInstant.now().getEpochSecond()System.currentTimeMillis()
Gotime.Now().Unix()time.Now().UnixMilli()
PHPtime()(int) (microtime(true) * 1000)
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
MySQLUNIX_TIMESTAMP()ROUND(UNIX_TIMESTAMP(NOW(3)) * 1000)
PostgreSQLextract(epoch from now())::bigint(extract(epoch from now()) * 1000)::bigint
Bashdate +%sdate +%s%3N

Notable Unix times

TimestampDate (UTC)Why it matters
01 January 1970, 00:00:00The Unix epoch
1,000,000,0009 September 2001, 01:46:40The billionth second
1,234,567,89013 February 2009, 23:31:30A famous “counting” moment
2,000,000,00018 May 2033, 03:33:20Two billion seconds
2,147,483,64719 January 2038, 03:14:07Largest signed 32-bit time — the Year 2038 problem

FAQ

Frequently asked questions

What is Unix time (epoch time)?

The number of seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is the same everywhere in the world; time zones only change how it is displayed.

Is my timestamp in seconds or milliseconds?

Count the digits: today’s times have 10 digits in seconds and 13 in milliseconds (16 in microseconds, 19 in nanoseconds). The converter detects this automatically.

What is the Year 2038 problem?

Systems that store Unix time as a signed 32-bit number overflow after 2,147,483,647 — 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit time, which lasts billions of years.

How do I convert an Excel date to a timestamp?

Choose “Excel / Sheets serial date” as the format and paste the number. Excel counts days from 30 December 1899, so 45292 is 1 January 2024.

Does Unix time change with daylight saving?

No. Unix time always counts UTC seconds. Daylight saving only changes the local time shown for it — which the converter applies for the zone you choose.

Keep going

Browse every tool

Last updated Report a problem or suggest a feature