Unix timestamp converter

Unix timestamp converter

Convert dates and timestamps in seconds, milliseconds, microseconds or nanoseconds

Computed in your browser

Choose a zone and unit, then convert in either direction. Expand batch conversion for multiple values; microsecond and nanosecond results retain their full precision.

Current timestamps

Seconds–
Milliseconds–

Uses your browser clock. Pause to copy a fixed value; an incorrect device clock affects these values.

Time zone and unit

Choose a shortcut or enter an IANA name / UTC offset, such as Europe/London or UTC+05:45. Zones do not change the instant.

Timestamp unit

Automatic mode estimates units from the common 10 / 13 / 16 / 19 digit lengths. Select explicitly for early dates. Both directions and batch conversion share these settings.

Timestamp → date

Date → timestamp

Accepts dates such as 2026-01-01 or 2026/1/1, date-times and ISO 8601, with up to 9 fractional second digits. An explicit Z / offset overrides the selected zone. Dates alone mean midnight.

Batch conversion and export

One value per line, up to 200 lines / 32,000 characters, using the zone and unit above. Invalid rows are reported individually. Export uses tab-separated text.

Conversion direction


  
Code reference

These examples use UTC; ts is an integer timestamp in seconds. Specify units and zones in your application. Copy individual snippets below.

LanguageCurrent timestamp in secondsTimestamp to a UTC date
JavaScript
Math.floor(Date.now() / 1000)
new Date(ts * 1000).toISOString()
PHP
time()
(new DateTimeImmutable('@' . $ts))->format(DateTimeInterface::ATOM)
Python
from datetime import datetime, timezone
int(datetime.now(timezone.utc).timestamp())
datetime.fromtimestamp(ts, timezone.utc).isoformat()
Go
time.Now().Unix()
time.Unix(ts, 0).UTC().Format(time.RFC3339)

Example

Input

1735689600

Example result

UTC: 2025-01-01 00:00:00
Asia/Shanghai: 2025-01-01 08:00:00

Select seconds. Both displayed dates refer to the same instant.

Technical details & limits

Unix time starts at 1970-01-01 00:00:00 UTC. Zones affect display and offset-free date parsing. Automatic units use digit-length heuristics; check the producing system. Exact nanosecond values and fractional remainders are preserved, while the live device clock remains millisecond-precision. Invalid dates and DST gaps are rejected; repeated times require an explicit offset.

About this tool

Convert dates and timestamps in seconds, milliseconds, microseconds or nanoseconds. Choose zone shortcuts or enter IANA names and UTC offsets. Inspect the live clock, use midnight shortcuts, copy results or export batches. Conversion runs locally.

Use cases

  • Figure out which local time a timestamp returned by an API actually maps to.
  • You see a large number in a log or a database — is it seconds or milliseconds?
  • Translate a human-entered date into the timestamp you will store in the database.
  • Line up trigger times across time zones for a scheduled job or shift roster.

How to use

  1. Enter a timestamp and choose automatic, seconds, milliseconds, microseconds or nanoseconds.
  2. Choose a zone shortcut or enter an IANA name / UTC offset. Both directions use this setting.
  3. Convert in either section and copy individual results. Dates accept up to 9 fractional second digits. An explicit offset takes precedence over the page zone.
  4. Use current time or midnight shortcuts. Expand batch conversion for multiple values, one per line.

Input & output

Input
Timestamps in seconds / milliseconds / microseconds / nanoseconds, or dates and ISO 8601 strings.
Output
Date in the selected zone, UTC ISO 8601 and timestamps in four units, with individual copying and batch export.
Limits
UTC years 0001–9999, with nanosecond precision and no leap seconds. Batches are limited to 200 lines / 32,000 characters. The current device clock provides millisecond precision.

Notes

Automatic detection is a heuristic. Select the unit explicitly when precision matters and include an offset for repeated DST times.

FAQ

How do I convert Unix timestamps in seconds or milliseconds to dates?
Choose the correct seconds or milliseconds unit before converting a Unix timestamp to a date. The millisecond value for the same instant is the seconds value multiplied by 1000. Recent timestamps commonly have 10 digits in seconds or 13 in milliseconds. Digit counting is only a heuristic, so choose the unit explicitly for early dates and verify the selected display time zone.
Why does a Beijing timestamp conversion differ from UTC by 8 hours?
Beijing local time is 8 hours ahead of UTC, while the Unix timestamp identifying the instant stays unchanged. Selecting Asia/Shanghai makes 00:00 UTC appear as 08:00 on the same day. When converting a date without an explicit offset back to a timestamp, the selected time zone determines how that date is interpreted. Check the date as well as the displayed hour.
Can the Unix timestamp converter handle dates before 1970?
Negative Unix timestamps represent instants before the start of 1970 in UTC. With seconds selected, -1 means December 31, 1969 at 23:59:59 UTC. A local time zone can display a different calendar date for that same instant. Keep the unit and time zone fixed when comparing results, and do not interpret a change in the displayed date as a change in the timestamp.

Related tools

Unix timestamp converter · Convert dates and timestamps in seconds, milliseconds, microseconds or nanoseconds
Unix timestamp converter — Tool illustration · dayeku.com