You need a timestamp for right now. A test fixture needs a realistic created-at value, an API request wants the current time, a log line needs a reference point, or you are comparing a stored value against the present to see which is newer. Guessing from the clock on the wall is not enough, because the value you need is a count of seconds since 1970, and nobody does that arithmetic in their head.

This guide shows the quickest way to get the current Unix timestamp, how to read the conversions that come with it, and how to choose between the seconds and milliseconds forms. The tool for the job is the Unix Timestamp Converter on Ovatly.

Contents

  • Quick answer
  • What the current timestamp actually is
  • Step by step: getting the current timestamp
  • Seconds or milliseconds: picking the right form
  • Worked example: one real moment, three readings
  • When you need a timestamp for a different moment
  • Limitations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Open the Unix Timestamp Converter and press Use current time. The converter fills in the timestamp for the present moment and shows the same moment in UTC, in ISO 8601 form and in your local time, with a plain relative description. Copy the form your system expects: the 10-digit value is the timestamp in seconds, and the 13-digit value is the same moment in milliseconds.

What the current timestamp actually is

A Unix timestamp counts the seconds since the Unix epoch: midnight at the start of 1 January 1970 in UTC. The current timestamp is simply that count read at this instant. It is not stored anywhere or issued by anyone; it is the distance between the epoch and now, and it grows by one every second.

That is why "the current timestamp" is a moving target. There is no single correct value to memorise or look up in a table. The right value is whichever count is true at the second you use it, which is exactly what a converter gives you when you press the button.

Step by step: getting the current timestamp

  1. Open the Unix Timestamp Converter.
  2. Press Use current time. The converter fills in the timestamp for the present moment.
  3. Read the three conversions together: the UTC line, the ISO 8601 line and your local time, plus the relative description of the moment.
  4. If you know the receiving system expects a particular unit, set the unit selector to seconds or milliseconds. Otherwise leave it on Auto-detect, which treats values of 1 trillion or more as milliseconds and smaller values as seconds.
  5. Copy the value in the form you need and use it straight away, while it is still current.

Seconds or milliseconds: picking the right form

Two forms of the current timestamp circulate, and they differ by a factor of a thousand. The classic form counts seconds and currently has 10 digits. The millisecond form, common in JavaScript and many APIs, has 13 digits. The converter auto-detects which one it has been given and shows which unit it used, so you can verify the reading before you trust it.

Which form you should copy depends entirely on the system receiving it. A database column, an API field or a token claim each has its own convention, and the value itself does not tell you which one applies. Count the digits in a sample value from that system: 10 digits means seconds, 13 means milliseconds. Match that form, because feeding a 13-digit millisecond value into a field expecting seconds produces a date tens of thousands of years in the future, and the reverse collapses the moment to January 1970.

Worked example: one real moment, three readings

At the moment this guide was written, pressing Use current time gave the timestamp 1795813392. The converter's readings for that single moment were:

  • UTC: Friday, 27 November 2026 at 21:03:12 UTC
  • ISO 8601: 2026-11-27T21:03:12.000Z
  • Milliseconds form: 1795813392000

The local line showed the same instant rendered in the reader's own time zone, whatever that happened to be, and the relative description placed the moment against now. Three representations, one instant. Your press of the button will give a larger number, because the count has kept climbing since this one was read, and that is the point: the example is already history, and yours will be current for exactly one second.

When you need a timestamp for a different moment

Sometimes "now" is not the moment you need. The same converter works in the other direction: pick a date and time in its lower half and it returns that moment's timestamp. One caution from the converter itself: the picked time is interpreted in your local time zone, and the result says so. If the deadline or event you are encoding was quoted in UTC, convert carefully, because a local reading of the same wall-clock numbers names a different instant.

Limitations

A current timestamp is only current at the instant you read it. Copy one into a fixture or a request and it immediately becomes a record of when you copied it, not of when the thing runs. The converter also works from the clock of the device you are using, so if that clock is wrong, the timestamp faithfully encodes the wrong moment. And the converter reports values beyond the range JavaScript dates support, about 275,000 years either way, as errors rather than dates, so an error message usually means the input was not a plausible timestamp at all.

Common mistakes

  • Reusing a copied value later. A timestamp you grabbed this morning is not the current timestamp this afternoon. Press the button again at the moment of use.
  • Mixing up the units. Ten digits is seconds, thirteen is milliseconds. Feeding one form where the other is expected is the most common timestamp bug of all.
  • Reading the local line as UTC. The local line applies your device's time zone. When a system expects UTC, copy the UTC or ISO line instead.
  • Typing a timestamp by hand. Transposed digits in a 10 or 13 digit number are nearly invisible. Copy the value, never retype it.

FAQs

How do I get the current Unix timestamp? Open the Unix Timestamp Converter and press Use current time. The converter fills in the timestamp for the present moment and shows the UTC, ISO 8601 and local readings plus a relative description, ready to copy.

Should I copy the timestamp in seconds or milliseconds? It depends on the system you are feeding. Current timestamps in seconds have 10 digits and in milliseconds 13, and the two forms are not interchangeable. Check what the receiving system expects, then use the converter's unit selector to force the form you need.

Why does the current timestamp change every time I look? Because it is a live count of the seconds since the Unix epoch, midnight at the start of 1 January 1970 in UTC. Every passing second adds one, so the current value is different each moment you read it.

Can I get the current moment in ISO 8601 form instead? Yes. The converter shows the ISO 8601 line alongside the UTC and local lines for the same moment, so you can copy whichever representation your log, API or database field expects.

Can I get a timestamp for a specific date instead of now? Yes. Pick a date and time in the lower half of the converter and it gives you that moment's timestamp. The picked time is interpreted in your local time zone, and the converter says so on the result.

Conclusion

Getting the current timestamp is a one-press job: open the converter, press Use current time, and copy the reading in the unit your system expects, 10 digits for seconds or 13 for milliseconds. The harder direction is usually the reverse problem, an expiry value you have been given and need to check against now. The companion guide How to Debug Expiry Times Using Unix Timestamps works through that workflow, and the Developer Tools archive collects the rest of the format and encoding guides.