Text Processing Tools

Unix Timestamp Converter

Turn epoch timestamps from logs, databases, APIs and JWTs into readable dates in UTC, your local time or any timezone, convert a date back to Unix seconds or milliseconds, and convert a whole column of timestamps at once. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.

Private by design: anything you enter is processed in your browser only. It is never uploaded to or logged on our servers. Conversions use your device's clock and timezone database.

Current Unix Time

Updates live from your device clock

Seconds
0
Milliseconds
0

Timestamp → Date

Date → Timestamp

Interpret As

Batch Convert

One timestamp per line. Units are auto-detected per line.

About Unix timestamps

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. Because it is a single number with no timezone attached, it is the most common way for databases, log files, APIs and programming languages to store a moment in time. Negative values represent dates before 1970.

Different systems use different precisions. Classic Unix tools and most APIs use seconds (10 digits today), JavaScript's Date.now() and Java use milliseconds (13 digits), while Python's time.time_ns(), Go and many tracing systems use microseconds (16 digits) or nanoseconds (19 digits). This converter detects the unit from the size of the number; switch the unit selector if you are working with very old or far-future values where the guess could be ambiguous.

The results show the same instant in UTC, your local timezone and any IANA timezone you pick, along with ISO 8601 and RFC 2822 strings that can be pasted straight into code, HTTP headers or emails. The ISO week number follows ISO 8601: weeks start on Monday and week 1 is the week containing the first Thursday of the year.

A well-known limit is the Year 2038 problem: signed 32-bit integers overflow at 2147483647 (19 January 2038, 03:14:07 UTC). Modern systems store timestamps as 64-bit integers to avoid it. All conversions here run entirely in your browser — nothing is sent to a server.

Related tools: the exp, iat and nbf claims in a JSON Web Token are Unix timestamps in seconds, and the JWT decoder shows them alongside the rest of the token. To add days or count business days between two dates, use the date calculator, and to work out when a scheduled job will next run, use the cron expression builder.

Reference Guide

Get the current Unix time in seconds:

LanguageCode
JavaScriptMath.floor(Date.now() / 1000) (Date.now() alone is milliseconds)
Pythonint(time.time())
PHPtime()
Gotime.Now().Unix()
JavaInstant.now().getEpochSecond()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()
RubyTime.now.to_i
Bashdate +%s
MySQLSELECT UNIX_TIMESTAMP();
PostgreSQLSELECT EXTRACT(EPOCH FROM now()); (includes fractional seconds)
SQLiteSELECT strftime('%s', 'now');

Convert a timestamp back to a date:

LanguageCode
JavaScriptnew Date(1700000000 * 1000).toISOString()
Pythondatetime.fromtimestamp(1700000000, tz=timezone.utc)
PHPgmdate('c', 1700000000)
Gotime.Unix(1700000000, 0).UTC()
JavaInstant.ofEpochSecond(1700000000)
Bash (GNU / Linux)date -u -d @1700000000
Bash (macOS / BSD)date -u -r 1700000000
MySQLSELECT FROM_UNIXTIME(1700000000); (in the session time zone)
PostgreSQLSELECT to_timestamp(1700000000);
SQLiteSELECT datetime(1700000000, 'unixepoch');

Guess the unit from the number of digits (for dates between 2001 and 2286):

DigitsUnitExample for 2023-11-14T22:13:20ZTypical source
10Seconds1700000000Unix tools, PHP, most REST APIs, JWT claims
13Milliseconds1700000000000JavaScript Date.now(), Java System.currentTimeMillis()
16Microseconds1700000000000000BigQuery UNIX_MICROS(), Zipkin span timestamps
19Nanoseconds1700000000000000000Go UnixNano(), Python time.time_ns()

Notable timestamps:

TimestampUTC dateWhy it matters
01970-01-01T00:00:00ZThe Unix epoch
10000000002001-09-09T01:46:40ZFirst 10-digit timestamp
12345678902009-02-13T23:31:30ZCelebrated by developers worldwide
20000000002033-05-18T03:33:20ZNext round billion
21474836472038-01-19T03:14:07Z231−1, the largest signed 32-bit value (Year 2038 problem)
-21474836481901-12-13T20:45:52ZSmallest signed 32-bit value
42949672952106-02-07T06:28:15Z232−1, the limit for unsigned 32-bit timestamps

Example input

1700000000   →  2023-11-14T22:13:20.000Z  (Tuesday)

Batch:
0
1000000000
1700000000
1700000000123
2147483647

This sample loads automatically when you open the tool. Use Load Sample to bring it back.

Frequently Asked Questions

A Unix timestamp (epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is a time-zone-independent way to store a moment in time.

Current timestamps in seconds have 10 digits, while milliseconds have 13 digits (microseconds 16, nanoseconds 19). The converter detects the unit automatically from the length.

Systems that store Unix time as a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC. Modern systems use 64-bit integers, which push the limit billions of years into the future.