Unix Timestamp Converter

Convert an epoch timestamp from a log, database or API into a readable date, or turn a date into a timestamp. The current Unix time updates live.

  • Free
  • No sign-up
  • Runs in your browser
Current Unix time (seconds)
Milliseconds

Timestamp to date

Date to timestamp

Get the current Unix timestamp in code

LanguageSeconds since the epoch
JavaScriptMath.floor(Date.now() / 1000)
Pythonimport time; int(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())::bigint;

How to use the Unix Timestamp Converter

  1. Paste a timestamp: the unit is detected from its length.
  2. Read it as UTC, local time, ISO 8601 and in the time zone you pick.
  3. To go the other way, pick a date, a time and a time zone.
  4. Copy the value you need.

Monitor what your code does after it ships

Send events to SensaCat’s ingest API and get alerted when jobs, webhooks and multi-step flows stall.

Start monitoring free

Frequently asked questions

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 at a given moment, which makes it useful for logs and APIs.

Current timestamps have 10 digits in seconds and 13 in milliseconds. JavaScript’s Date.now() and Java’s System.currentTimeMillis() return milliseconds; PHP’s time() and most Unix tools return seconds.

Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038. Storing timestamps as 64-bit integers avoids it.

No. A timestamp always counts from a moment in UTC. Time zones only matter when you display it as a local date and time.

Related tools

Cron Expression Parser

Translate a cron expression into plain English and list its next runs in any time zone.

Runs in your browser Open tool

JWT Decoder

Read a JWT’s header and claims, check expiry and verify HMAC signatures locally.

Runs in your browser Open tool

JSON Formatter

Pretty-print, minify and validate JSON with exact line and column errors.

Runs in your browser Open tool