Unix Timestamp Converter
Convert Unix timestamps in seconds or milliseconds to readable dates and back, in UTC and your local time zone.
Runs in your browser. Nothing you enter is uploaded or stored.
How to use the Unix Timestamp Converter
- The current Unix time is shown at the top and ticks every second. Click it to copy it.
- To read a timestamp, paste it under Timestamp to date. Seconds, milliseconds, microseconds and nanoseconds are recognised automatically.
- Or press one of the examples: Now, Start of today, Epoch or the 2038 limit.
- The date appears in UTC (blue) and in your own time zone (green), along with how long ago or how far ahead it is (amber).
- To go the other way, pick a date and time under Date to timestamp and choose whether it is in your time zone or UTC.
- Click any result to copy it.
Questions and answers
- What is a Unix timestamp?
- It is the number of seconds that have passed since midnight UTC on 1 January 1970, a moment known as the Unix epoch. Because it is a single number with no time zone, it is a common way for computers to store and compare times. It is also called epoch time or POSIX time.
- How does it know whether my number is seconds or milliseconds?
- By its size. A present-day timestamp has 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. Those ranges do not overlap for any date within thousands of years of today, so the unit can be told apart safely. The line under the box says which unit was used.
- Does a timestamp have a time zone?
- No. A timestamp marks one instant that is the same everywhere in the world. Time zones only matter when that instant is written out as a date and a clock time, which is why the same timestamp is shown here both in UTC and in your local time.
- Why is my converted time off by a few hours?
- Almost always a time zone mix-up: a date that was meant as UTC was read as local time, or the other way round. Under Date to timestamp, switch between your time zone and UTC to see both readings. If the result is off by a factor of a thousand instead, seconds and milliseconds were confused.
- What is the year 2038 problem?
- Systems that store the timestamp as a signed 32-bit number can count no higher than 2,147,483,647, which is reached at 03:14:07 UTC on 19 January 2038. One second later such a counter wraps round to a date in 1901. Modern systems use 64-bit numbers and are not affected.
- Can a timestamp be negative?
- Yes. Negative values count backwards from 1970, so -86400 is 31 December 1969. This tool accepts them.
Related tools
Date Difference CalculatorWork out the time between two dates in years, months and days, or as total weeks, days, working days and hours.JSON FormatterFormat, validate and minify JSON in your browser. Clear error messages, free, and nothing you paste is uploaded.XML FormatterFormat and validate XML in your browser. Indent messy markup, spot syntax errors, and keep your data on your device.YAML FormatterFormat and validate YAML in your browser. Fix indentation, catch syntax errors, and keep config files on your device.Base64 Encode and DecodeEncode text to Base64 or decode it back in your browser, with full UTF-8 support. Free, instant and nothing is uploaded.