Unix timestamp converter
Convert dates and timestamps in seconds, milliseconds, microseconds or nanoseconds
Choose a zone and unit, then convert in either direction. Expand batch conversion for multiple values; microsecond and nanosecond results retain their full precision.
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
- Enter a timestamp and choose automatic, seconds, milliseconds, microseconds or nanoseconds.
- Choose a zone shortcut or enter an IANA name / UTC offset. Both directions use this setting.
- 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.
- 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