MUTools

Other

UNIX Timestamp Converter

This UNIX timestamp converter converts between UNIX timestamps (epoch seconds) and human-readable dates in both directions. Enter a timestamp to convert it to a date, or enter a date and time to convert it to a timestamp — the result updates in real time and can be copied with one click.

Current UNIX time

Seconds (10 digits)
Milliseconds (13 digits)
Unit
Time zone

Other formats

ISO 8601
Localized
UTC string
Day of week

All conversions run entirely in your browser, and the values you enter are never sent to any external server.

About UNIX Timestamp Converter

This UNIX timestamp converter converts between UNIX timestamps (epoch seconds) and human-readable dates in both directions. Enter a timestamp to convert it to a date, or enter a date and time to convert it to a timestamp — the result updates in real time and can be copied with one click.

It supports both 10-digit (seconds) and 13-digit (milliseconds) values, and you can switch the unit with a single tap. The time zone can be set to UTC or your browser's local time zone, which is handy when you need to turn the UTC timestamps in server logs into local time. Press "Set current time" to instantly fetch the UNIX timestamp for the present moment.

A UNIX timestamp (UNIX time / epoch time) represents a point in time as the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. Because it is a single value that does not depend on a time zone, it is used everywhere: date columns in databases, API responses, logs, JWT expiration (exp), and more.

This tool also shows the converted value in multiple formats — ISO 8601, a localized representation, a UTC string (RFC 1123 style), and the day of the week — each of which can be copied individually.

All conversions run entirely in your browser, and the values you enter are never sent to any external server.

How to use

  1. Choose seconds (10 digits) or milliseconds (13 digits) under "Unit", and UTC or Local under "Time zone".
  2. Enter a number in the "UNIX timestamp" field, and the converted value appears in the "Date & time" field in real time.
  3. Conversely, enter a value in the "Date & time" field in "YYYY-MM-DD HH:mm:ss" format to convert it to a UNIX timestamp.
  4. Use "Set current time" or the "Now" button to fetch the current time with one click.
  5. Use the "Copy" button to copy the result. Other formats such as ISO 8601 can also be copied individually.

Use cases

  • Engineers who want to convert UNIX timestamps stored in server logs or databases into readable dates.
  • Developers who need to quickly check the date that the epoch seconds or milliseconds (13 digits) in an API response point to.
  • Anyone who wants to check what point in time JWT values such as exp / iat refer to.
  • People who need the UNIX timestamp for a specific date and time to embed in code or queries.
  • People who want to turn times recorded in UTC into a local time zone such as their own.
  • Anyone who wants to fetch the current UNIX timestamp (seconds or milliseconds) with one click for test data.

Notes

  • The formula from a UNIX timestamp to a date is "date (UTC) = 1970-01-01 00:00:00 UTC + N seconds". For 13-digit (millisecond) values, divide by 1000 to get seconds first.
  • In Excel, if cell A1 holds a timestamp in seconds, "=(A1/86400)+DATE(1970,1,1)" converts it to a date (UTC). Conversely, "=(A1-DATE(1970,1,1))*86400" gets seconds from a date. Adjust for your local time zone offset as needed.
  • When "Local" is selected, conversion is based on your device's and browser's time zone settings. In regions with daylight saving time, the switch follows your device settings.
  • Conversion to seconds (10 digits) truncates anything below one millisecond. Choose "Milliseconds" to keep sub-second precision.
  • The supported range matches what JavaScript's Date can handle (roughly ±270,000 years). Values beyond that cannot be converted.

FAQ

What is the difference between a 10-digit and a 13-digit timestamp?
A 10-digit value is a UNIX timestamp in seconds (epoch seconds), while a 13-digit value is in milliseconds. For example, "1700000000" is in seconds and "1700000000000" is in milliseconds. You can switch between seconds and milliseconds under "Unit", so both lengths are supported.
What is the formula for a UNIX timestamp?
A UNIX timestamp is the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. It is calculated as date (UTC) = 1970-01-01 + N seconds, and conversely the elapsed seconds = (target date − 1970-01-01). For milliseconds (13 digits), the relationship is multiplied or divided by 1000.
How do I convert a UNIX timestamp in Excel?
Excel dates are serial values starting from January 1, 1900, so to convert from a UNIX timestamp (seconds) use "=(A1/86400)+DATE(1970,1,1)", and to get a timestamp from a date use "=(A1-DATE(1970,1,1))*86400". Set the cell format to date/time to make the result readable, and adjust for the time zone offset separately.
When should I use UTC versus Local?
Values in server logs and databases are often recorded in UTC, so choose "UTC" in that case. When you want to see the time that matches your own sense of time (for example, your local time), choose "Local". The timestamp itself is a time-zone-independent number, so only the displayed date and time change.
Do you support nanoseconds (19 digits) or microseconds (16 digits)?
This tool supports seconds (10 digits) and milliseconds (13 digits). If you are working with microsecond (16-digit) or nanosecond (19-digit) values, drop the trailing digits to round to milliseconds (13 digits) before entering them (for example, drop the last 6 digits for nanoseconds or the last 3 for microseconds).
Are the values I enter sent to a server?
No. All conversions run entirely in your browser, so you can safely use it even with timestamps from internal systems or personal data.