Skip to main content
NyankoTools

Unix Timestamp Converter

Converts a Unix timestamp (epoch seconds or milliseconds) to a date/time and back, in real time. The unit is auto-detected from the number of digits, but you can also switch it manually. Everything happens in your browser, and nothing you type is ever sent to a server. Need to check the length of a formatted log line? Check out the Character Counter as well.

🔒 Runs in your browser · Your data is never sent to a server

Current Unix time

Timestamp → Date/time

Local time
UTC
ISO 8601

Date/time → Timestamp

Seconds
Milliseconds

Notes

  • With "Auto-detect", values of 10 digits or fewer are treated as seconds and 11 digits or more as milliseconds. Microsecond and nanosecond timestamps are not supported.
  • The "Date/time → Timestamp" field is interpreted in your device's local timezone.
  • Dates before 1970 result in a negative timestamp.

Glossary

Unix timestamp (Unix time / epoch seconds)

A way of representing a point in time as the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. Because it does not depend on a timezone, it is commonly used to exchange dates and times between systems.

Millisecond timestamp

A Unix timestamp multiplied by 1000 and expressed in milliseconds. Commonly seen in JavaScript's Date.now() and in log timestamps, typically around 13 digits long.

UTC (Coordinated Universal Time)

The global time standard. Local timezones are expressed as an offset from UTC, such as UTC+9 for Japan Standard Time.

FAQ

How are seconds and milliseconds told apart?

With auto-detect, 10 digits or fewer are seconds and 11 or more are milliseconds. You can also set the unit manually. Microseconds and nanoseconds are not supported.

Which time zone is used when I enter a date and time?

Input is interpreted in your device's local time zone. If you need UTC, adjust for the offset.

Can dates before 1970 be converted?

Yes. Dates before January 1, 1970 are represented as negative timestamps.

Share this page

↑↓ Select Enter Open Esc Close