DO IT EASY APP
English

Unix timestamp converter

Convert a Unix timestamp to a readable date and a date to a timestamp. Seconds and milliseconds are detected automatically.

  • No sign-up, no fees.
  • Timestamp → readable date, date → timestamp.
  • Seconds and milliseconds are recognized automatically.
  • Local time, UTC (ISO 8601) and "relative to now".
  • The current timestamp ticks live.
  • What you type is processed, but never shared with anyone.

Epoch converter: how to use the Unix Timestamp Converter

Seen a number like 1700000000 in a log file? Four steps:

  1. Paste the timestamp. Paste the number into the Timestamp box. The tool works out by itself whether it's seconds or milliseconds and writes "Read as seconds." or "Read as milliseconds (around 13 digits)."
  2. Read the results. The Local time, UTC (ISO 8601), Seconds, Milliseconds and Relative to now lines appear. There's a copy button next to each line.
  3. Do the reverse. To go from a date to a timestamp, pick a day and time in the Date and time (your local time) field; the result in seconds appears right away. Fill in now fills in the current moment.
  4. Right now. The ticking number at the top is the current timestamp. You can convert it too with Convert this.

What is a Unix timestamp (epoch)?

A Unix timestamp is the number of seconds since midnight on January 1, 1970 (UTC). That starting moment is called the epoch. Computers like to store dates not as "November 14, 2023 at 10:13 pm" but as a single number: it's easy to sort, compare and calculate. Databases, log files, APIs, JWT tokens and file systems use Unix time for that reason. What people search for as timestamp to date and epoch to date is turning this number into a date people can read.

Seconds or milliseconds?

Unix systems and most databases use seconds: a 10-digit number these days. JavaScript, Java and many APIs use milliseconds: 13 digits. The tool looks at the size of the number, guesses which one it is and tells you.

The time zone question

A timestamp is independent of time zone; it's the same number for the same moment anywhere in the world. The difference only shows when displaying it. The Local time line follows your device's time zone. When talking with servers and teams in other countries, using the UTC line prevents confusion.

What is the 2038 problem?

Old systems store the timestamp in a 32-bit signed number. That number overflows on January 19, 2038 at 03:14:07 UTC. New systems use 64 bits, so the problem doesn't affect them; this tool works with 64-bit numbers too.

Tips for converting timestamps

  • Time offset: if the result is off by a few hours, one of them is showing UTC and the other local time.
  • Mistaking milliseconds for seconds: if you read a 13-digit number as seconds, you see thousands of years ahead.
  • Dates in a JWT: the JWT decoder shows the exp and iat fields as dates.

For the day difference between two dates there's Days between two dates, for the time in different cities World clock and time difference, and for scheduled jobs Cron expression explainer.

Where do I see timestamps?

  • In log files: at the start of lines that show when events happened.
  • In databases: in columns like created_at and updated_at.
  • In API responses: in fields like exp, iat and timestamp.

Frequently asked questions

Is the timestamp converter free?

No cost at all. Not bad, right?

Is what I type saved?

The conversion happens in your browser. What you type is processed, but never shared with anyone.

How do I know whether it's seconds or milliseconds?

10 digits is usually seconds, 13 digits milliseconds. The tool picks by the size of the number and tells you.

Why is the time I see off by a few hours?

The timestamp is the same everywhere; Local time follows your device's time zone and UTC is world time. Compare lines in the same zone.

What does epoch mean?

It's the starting moment of the count: January 1, 1970, 00:00:00 UTC.

Can I convert a date to a timestamp?

Yes. Pick the day and time in the date field; the result in seconds and milliseconds appears.

What does "Relative to now" show?

How long ago or how far ahead the moment is, in plain words, such as "3 hours ago".

Can I use it on my phone?

Yes. Paste the number; the results show right below.

Can negative timestamps be converted?

Yes. A negative number is a moment before 1970; it's converted the same way.

Why do programmers use timestamps?

Because a single number is easy to compare, sort and calculate, and it doesn't depend on a time zone or a date format. Storing a date as a number removes a lot of confusion between systems.

Related tools