Skip to content
Developer

Unix Timestamp Converter

Paste a timestamp or a date and get every other representation. Seconds, milliseconds, microseconds and nanoseconds are told apart automatically.

Right now1792232362

Press Esc to clear

Nothing converted yet

Paste a timestamp in any unit, or a date. The unit is worked out from the digit count.

About the Unix Timestamp Converter

A Unix timestamp counts from the start of 1970, which makes it unambiguous, timezone-free and easy to compare — and completely unreadable. Converting one by eye is impossible, so the number gets copied into a tool, and the first thing that tool has to decide is what unit it is in.

That decision is the one that goes wrong. The same instant is 1700000000 in seconds, 1700000000000 in milliseconds, and longer still in microseconds or nanoseconds depending on what produced it — JavaScript uses milliseconds, most databases and Unix tools use seconds, and tracing systems often use nanoseconds. Feed a millisecond value to something expecting seconds and you get a date in the year 55000; the other way round lands you in January 1970. Neither produces an error, which is why this tool works out the unit from the digit count instead of asking.

The output shows the same instant several ways at once: ISO 8601 in UTC, which is what you should be storing and transmitting; your local time with the timezone named; the raw value in each unit; and a relative description like three days ago, which is usually the fastest way to tell whether a timestamp is plausible.

The conversion runs both ways, so a human-readable date typed in produces the timestamp for it. That is the half you need when writing a query or filling in a test fixture.

Everything runs in your browser using its own timezone database.

Frequently asked questions

How does it know if my timestamp is seconds or milliseconds?

From the digit count. Ten digits is seconds, thirteen is milliseconds, sixteen is microseconds and nineteen is nanoseconds — unambiguous for any date anyone actually works with.

Why is my date showing in 1970 elsewhere?

Because something read a seconds value as milliseconds, dividing the elapsed time by a thousand. The reverse mistake lands you thousands of years in the future.

Should I store dates as timestamps or ISO strings?

ISO 8601 in UTC for anything stored or transmitted — it is readable, sortable and unambiguous. Timestamps are better for arithmetic and comparison.