Internative Logo

Timestamp Converter: Unix Time to Date and Date to Unix Time

Timestamp Converter: Unix Time to Date and Date to Unix Time

A Unix timestamp, or epoch time, counts the seconds since 00:00:00 UTC on 1 January 1970. Systems like it because it is one number with no time zone, no daylight saving and no date format to argue about. People, however, cannot read it. The converter below turns a timestamp into a date in the time zone you choose, and a date back into a timestamp. It runs in your browser, so nothing you enter is sent anywhere.

Timestamp converter

Turn a Unix timestamp into a date, or a date into a timestamp. Seconds, milliseconds and time zones are supported.

Timestamp to date

10 digits are seconds, 13 are milliseconds. Auto-detect reads the unit from the size of the number.

Date to timestamp

For example 2025-11-27 15:00:00 or 2025-11-27T15:00:00+03:00. Without an offset, the date is read in the selected time zone.

What you enter never leaves your browser. Nothing is sent or stored.

How to use the converter

From timestamp to date

  1. Enter the timestamp, or press the button that fills in the current time.
  2. Leave the unit on automatic, or choose seconds, milliseconds, microseconds or nanoseconds.
  3. Choose the time zone: UTC, your local time or another zone from the list.
  4. Convert, and read the results.

From date to timestamp

  1. Enter a date and time, for example 2025-11-27 15:00:00 or in ISO form.
  2. Choose the time zone the date is written in.
  3. Convert to get the timestamp in seconds and milliseconds.

The results show the timestamp in seconds and milliseconds, the ISO 8601 form, the date in UTC and in your chosen zone with its offset, and how far the moment is from now, such as "3 days ago". Values outside the range a date can hold are rejected.

How the unit is detected

The tool looks at the number of digits. Today a timestamp has 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. If you choose a unit yourself, the tool uses exactly that one. This matters, because 1764244800 is the 27th of November 2025 in seconds, while the same number read as milliseconds is a day in January 1970.

Examples worth knowing

  • 0 is 1970-01-01T00:00:00Z, the epoch itself.
  • 1000000000 is 2001-09-09T01:46:40Z, one billion seconds.
  • 2147483647 is 2038-01-19T03:14:07Z, the largest signed 32-bit value. Systems that store time in 32 bits run out on that date.
  • 1764244800 is 12:00:00 UTC on 27 November 2025, which is 15:00 in Istanbul (UTC+3) and 07:00 in New York (UTC-5).

Mistakes behind off-by-hours bugs

  • Mixing seconds and milliseconds. JavaScript's Date.now() returns milliseconds, while many APIs and databases use seconds. A date in January 1970 or thousands of years in the future usually means a unit mismatch.
  • Reading a local time as UTC. The timestamp is the same everywhere. Only the written date differs by zone. Store and exchange timestamps or UTC dates, and convert to a local zone only when you show them to a person.
  • Daylight saving. A zone's offset changes during the year. Convert with a named zone like Europe/Istanbul or America/New_York rather than a fixed number of hours.
  • Dates without a zone. 2025-11-27 15:00:00 is a different moment in each place. Write the zone or offset.
  • 32-bit overflow. Use 64-bit integers for time values in systems that must work past 2038.

When time is an integration problem

Time zones and units are a classic source of errors between systems, such as an order that appears a day early in a report or an event that fires at the wrong hour. If your systems exchange timestamps and someone corrects them by hand, system integration is the fix, and custom software development is where the shared rules go.

Frequently asked questions

Does my input leave my browser?

No. The conversion happens in the page on your device. The tool makes no network request with your input and does not store it.

Is a Unix timestamp in UTC?

It has no time zone. It is a count of seconds since the epoch, which is defined in UTC. You choose a zone only to display it as a date.

How do I know whether my timestamp is in seconds or milliseconds?

Count the digits. Ten digits means seconds and thirteen means milliseconds for dates around today. Or pick the unit yourself.

Why does the date show one hour off?

Usually a daylight saving offset or a date read in the wrong zone. Check the zone selected and the offset shown next to the result.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.