JSON Parser

Unix Timestamp Converter — Epoch Time to Date and Back

Convert a Unix timestamp (epoch time) to a human-readable date, or turn a date into a timestamp, instantly in your browser. Paste a value in seconds or milliseconds and see it as ISO 8601, UTC and your local time. The page also shows the current Unix time ticking live, with one click to copy it.

How to convert a Unix timestamp

  1. Choose Timestamp → Date and paste a number such as 1700000000.
  2. Read the result as ISO 8601, UTC and local time, and copy any format with one click.
  3. To go the other way, choose Date → Timestamp and enter a date like 2026-01-01T00:00:00Z. You get seconds, milliseconds and ISO output.
  4. Click Use current time to fill in the present moment.

What is a Unix timestamp?

A Unix timestamp counts the seconds that have passed since 1 January 1970 at 00:00:00 UTC, a moment called the Unix epoch. Because it is one number with no time zone, it is an easy way for servers, databases and APIs to store and compare moments in time. See the longer explanation in What is a Unix timestamp and how to convert one.

Seconds or milliseconds?

Unix time is classically in seconds (10 digits today, like 1700000000), but JavaScript, Java and many APIs use milliseconds (13 digits, like 1700000000000). This converter treats any number above 10,000,000,000 as milliseconds and anything smaller as seconds, so both of those inputs give the same date. If you have 16 digits (microseconds) or 19 digits (nanoseconds), divide by 1,000 or 1,000,000 first to get milliseconds.

Timestamp examples

TimestampDate (UTC)Note
01970-01-01 00:00:00The Unix epoch
17000000002023-11-14 22:13:20Seconds
17000000000002023-11-14 22:13:20Same moment in milliseconds
17672256002026-01-01 00:00:00Start of 2026
21474836472038-01-19 03:14:07Largest signed 32-bit value (the Year 2038 problem)

Get or convert a timestamp in code

LanguageCurrent timestampTimestamp to date
JavaScriptMath.floor(Date.now() / 1000)new Date(ts * 1000)
Pythonint(time.time())datetime.fromtimestamp(ts, tz=timezone.utc)
Gotime.Now().Unix()time.Unix(ts, 0)
PostgreSQLEXTRACT(EPOCH FROM now())to_timestamp(ts)
MySQLUNIX_TIMESTAMP()FROM_UNIXTIME(ts)

Common timestamp mistakes

  • Mixing up seconds and milliseconds. A date in 1970 usually means a millisecond value was treated as seconds; a date thousands of years away means the reverse.
  • Forgetting time zones. A timestamp is always UTC. The "Local" line shows the date in your browser's time zone, so it differs from the UTC line unless you are on UTC.
  • Parsing ambiguous date strings. Prefer ISO 8601 (2026-01-01T00:00:00Z) when converting a date to a timestamp, since formats like 03/04/2026 mean different things in different countries.

Related tools

Timestamps appear inside tokens as iat and exp claims. Decode them with the JWT decoder. Schedule jobs with the cron expression parser, or generate unique IDs with the UUID generator.

Handles JSON files up to 20MB smoothly