Free online Unix timestamp calculator
A Unix timestamp is the number of seconds since January 1, 1970 UTC. This calculator converts between Unix timestamps and human-readable dates in both directions.
How to use
- Choose a conversion direction using the toggle at the top.
- Enter a Unix timestamp (in seconds) or a local date and time.
- Read the results: Unix seconds, Unix milliseconds, ISO 8601 string, and UTC string.
- Press “Share with my numbers” to copy a link with your input pre-filled.
How the conversion works
Timestamp to date: Multiply the input seconds by 1,000 to get milliseconds, construct a JavaScript Date object, then format it as ISO 8601 and UTC.
Date to timestamp: Parse the local datetime string as a Date object, then divide date.getTime() (milliseconds since epoch) by 1,000 and floor it to get Unix seconds.
Worked example
Unix timestamp: 1,751,630,400
- Unix milliseconds: 1,751,630,400,000
- ISO 8601: 2025-07-04T12:00:00.000Z
- UTC: Friday, 4 July 2025, 12:00:00 UTC
Notes
- The calculator interprets the datetime-local input as your local time zone. The ISO and UTC outputs are always in UTC.
- Negative Unix timestamps represent dates before January 1, 1970.
- JavaScript’s
Dateobject internally uses 64-bit floats for milliseconds, giving reliable precision for all dates between roughly year 271,821 BCE and year 275,760 CE.
Frequently asked
What is a Unix timestamp?
What is the difference between seconds and milliseconds timestamps?
What does ISO 8601 mean?
Why does my timestamp look different from what I expect?
What is the maximum Unix timestamp?
Related calculators
- Date difference calculator
Count the exact number of days, weeks, and months between two dates.
- Countdown calculator
Live countdown in days, hours, minutes, and seconds to any future date.
- Weekday calculator
Find the day of the week and week number for any date.
- Add or subtract days calculator
Find the date that is N days before or after any starting date.