Advertisement

Unix Timestamp Converter

Convert epoch time to a readable date in any time zone - or any date back to a Unix timestamp. Live current time included.

Last updated:

Unix Timestamp Converter
Epoch ⇄ date · Seconds · Milliseconds
Current Unix timestamp
-
 
Now (UTC)
-
Timestamp → date
Date → timestamp

How to Convert Epoch Time

1
Paste a timestamp: 10 digits = seconds, 13 digits = milliseconds
2
Read the date in UTC, your time and major time zones
3
To go back, pick a date, time and time zone

Seconds, milliseconds, microseconds and nanoseconds are detected from the number of digits.

What Is a Unix Timestamp?

Seconds, Milliseconds, Microseconds or Nanoseconds?

Digits (today)UnitUsed by
10SecondsLinux, PHP, Python time.time(), MySQL UNIX_TIMESTAMP
13MillisecondsJavaScript Date.now(), Java, Discord, many APIs
16MicrosecondsPostgreSQL, Python datetime precision
19NanosecondsGo time.UnixNano(), InfluxDB

Get the Current Timestamp in Code

LanguageSecondsMilliseconds
JavaScriptMath.floor(Date.now() / 1000)Date.now()
Pythonint(time.time())int(time.time() * 1000)
JavaInstant.now().getEpochSecond()System.currentTimeMillis()
PHPtime()floor(microtime(true) * 1000)
Gotime.Now().Unix()time.Now().UnixMilli()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
Bashdate +%sdate +%s%3N
MySQLUNIX_TIMESTAMP()ROUND(UNIX_TIMESTAMP(NOW(3)) * 1000)
PostgreSQLEXTRACT(EPOCH FROM NOW())EXTRACT(EPOCH FROM NOW()) * 1000

Convert a Timestamp to a Date in Code

LanguageExample
JavaScriptnew Date(1767225600 * 1000).toISOString()
Pythondatetime.fromtimestamp(1767225600, tz=timezone.utc)
Excel / Google Sheets=A1/86400 + DATE(1970,1,1)
SQL (MySQL)FROM_UNIXTIME(1767225600)
Bash (Linux)date -d @1767225600

Time Zones and Daylight Saving

Useful Epoch Values

TimestampDate (UTC)
01 Jan 1970 - the Unix epoch
10000000009 Sep 2001
17672256001 Jan 2026
200000000018 May 2033
214748364719 Jan 2038 - the "Year 2038 problem" limit for 32-bit systems

Timestamp Formats Compared

FormatExampleWhere you see it
Unix seconds1767225600Linux, APIs, JWT exp/iat
Unix milliseconds1767225600000JavaScript, Java, Discord
ISO 86012026-01-01T00:00:00ZJSON APIs, logs, HTML datetime
RFC 2822Thu, 01 Jan 2026 00:00:00 GMTEmail and HTTP headers
SQL DATETIME2026-01-01 00:00:00MySQL, SQL Server
Excel serial46023Spreadsheets (days since 1900)

Related Tools

Frequently Asked Questions

How do I convert a Unix timestamp to a date? +

Paste it above. The date appears in UTC, your local time and major time zones. 10 digits are seconds, 13 digits are milliseconds.

What is the current Unix timestamp? +

It is shown live at the top of this page in seconds and milliseconds.

How do I convert epoch time to IST or EST? +

Paste the timestamp; the table includes India (IST), New York (ET), Chicago, Denver and Los Angeles.

How do I convert a date to a Unix timestamp? +

Use Date → timestamp: pick the date, time and time zone, then copy the result.

Why is my date in 1970? +

You probably used a seconds value where milliseconds were expected (or the reverse). Multiply or divide by 1000.

Why is my date thousands of years in the future? +

Milliseconds were read as seconds. This tool detects the unit from the number of digits.

What is the Year 2038 problem? +

32-bit signed timestamps overflow at 2147483647 (19 Jan 2038). Use 64-bit time values.

Does a Unix timestamp include time zones? +

No. It is always UTC-based; the time zone is applied only when displaying it.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →