Skip to main content

Unix Timestamp Converter

Convert Unix seconds or milliseconds to readable dates and back

Enter a Unix timestamp

Choose the unit when automatic detection would be ambiguous.

Local date and time

Enter a value above to see the result.

ISO 8601

Enter a value above to see the result.

Current Unix time:

Was this Unix Timestamp Converter helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Unix Timestamp Converter

  • Convert epoch to date
  • Turn date into unix timestamp

How this date and time calculation works

Convert a Unix timestamp in seconds or milliseconds to a readable date (local, ISO 8601, or UTC), or turn any date string into Unix seconds and milliseconds.

Example input

1735689600 (unit: auto, output: ISO 8601)

Example output

2025-01-01T00:00:00.000Z — plus the same instant in your local time

Practical workflow

  1. Pick Timestamp to Date or Date to Timestamp.
  2. Paste the value. Auto treats absolute values below 10,000,000,000 as seconds and larger values as milliseconds; explicitly choose Seconds or Milliseconds for ambiguous values.
  3. Choose the primary output — local time, ISO 8601, or UTC — and copy either result card.
  4. Use Now to insert the current time, or Use result as input to flip direction and continue converting.

Common use cases

  • Read a created_at or expires_at value from an API response or database row.
  • Turn a log entry's epoch millisecond value into a human-readable moment while debugging.
  • Generate the exact Unix seconds for a scheduled job, a JWT exp claim, or a cache expiry.

Important notes and limitations

  • Conversion runs entirely in your browser and the live “current Unix time” ticker updates every second.
  • Both result cards stay visible before conversion and show guidance; malformed input keeps the results unavailable until corrected.
  • Local output uses your browser's time zone and locale. For a specific zone, take the ISO value to the Time Zone Converter.
  • Millisecond precision is preserved: 1735689600000 converts to the same instant as 1735689600, and Date to Timestamp always shows both seconds and milliseconds.
  • Impossible ISO calendar dates such as February 30 are rejected instead of being silently rolled into the following month.
  • Input and settings stay in page memory and clear when you reload or close the tab. An updated visit best-effort removes values saved by older versions. Only seconds and milliseconds are supported; convert microseconds or nanoseconds before entering them.

Unix timestamp conversions in Linux, BSD & Python

GNU/Linux date epoch seconds to human readable

date -d @1763920000 '+%Y-%m-%d %H:%M:%S %Z'

Converts POSIX epoch seconds into local formatted date string using standard Linux date.

macOS / BSD date epoch conversion

date -r 1763920000 '+%Y-%m-%d %H:%M:%S'

Converts epoch timestamp on macOS using BSD date syntax.

Current epoch time in milliseconds via Python

python3 -c 'import time; print(int(time.time() * 1000))'

Outputs current UTC timestamp in 13-digit millisecond format used by JavaScript Date.now().

Timestamp Precision & Epoch Standard Comparison

Format / UnitDigit LengthPrecisionMax RangePrimary Technology
Unix Epoch Seconds10 digits (e.g. 1763920000)1 secondYear 2038 (32-bit) / Year 292B (64-bit)Linux/POSIX, Redis, JWT exp/iat claims, MySQL UNIX_TIMESTAMP()
JavaScript Milliseconds13 digits (e.g. 1763920000000)1 millisecond (1/1,000 s)+/- 100,000,000 days from epochJavaScript Date.now(), MongoDB timestamps, Kafka message offsets
Microseconds16 digits (e.g. 1763920000000000)1 microsecond (1/1,000,000 s)High precision time trackingPostgreSQL TIMESTAMP WITHOUT TIME ZONE, Python datetime
Nanoseconds19 digits1 nanosecondSub-microsecond resolutionGo time.Now().UnixNano(), InfluxDB, Prometheus TSDB engine

Timezone, daylight saving & epoch troubleshooting

Converted date is in year 1970 (e.g. Jan 18, 1970)

Cause: Passing a 10-digit Unix timestamp (seconds) into a function expecting 13-digit milliseconds (e.g. new Date(1763920000)).

Solution: Multiply 10-digit seconds by 1000 before passing into JavaScript Date: new Date(sec * 1000).

Date is 1 hour off due to Daylight Saving Time (DST)

Cause: Local timezone transitions between standard time and daylight saving time across seasons.

Solution: Use UTC methods (toISOString(), getUTCHours()) or explicit timezone offsets (+03:00) when persisting or transmitting dates.

Year 2038 problem (Integer overflow on 32-bit signed integers)

Cause: On 03:14:07 UTC on 19 January 2038, 32-bit signed integers overflow to negative numbers (-2147483648).

Solution: Ensure all database columns and system libraries use 64-bit integer types (BIGINT / int64) for timestamp storage.

Continue your workflow

  • Date Calculator — Calculate days, weeks, and business days between dates or add duration offsets.
  • Time Zone Converter — Convert timestamps across global time zones with daylight saving time calculations.
  • Cron Expression Parser — Parse and validate cron schedules and preview upcoming execution fire timestamps.
  • Time Unit Converter — Convert temporal values between milliseconds, seconds, minutes, hours, and days.

Frequently asked questions

How do I tell whether a timestamp is in seconds or milliseconds?

Typical current timestamps use ten digits for seconds and thirteen for milliseconds. Auto applies a magnitude heuristic; select the unit explicitly for near-epoch millisecond values or distant future timestamps.

What is the difference between ISO 8601 and UTC output?

Both describe the same instant in UTC. ISO 8601 is the machine-friendly 2025-01-01T00:00:00.000Z form used in APIs and JSON; the UTC option prints the RFC 1123 style used in HTTP headers.

Why does the local date differ from the ISO date?

Your browser's time zone offset is applied to the local view. Around midnight the calendar date can therefore differ from the UTC date shown in the ISO string.

Can I convert a date string like 2025-01-01 to a timestamp?

Yes. Switch to Date to Timestamp and paste a browser-readable date, including ISO strings with a time and offset. A date without a time is treated as midnight UTC, and impossible ISO calendar dates are rejected.

Focused guides for this tool