Verystep Guides

How to Convert a Unix Timestamp to a Readable Date

The log line just says 1728000000 and the incident channel wants to know when that actually was. Here's how to turn a bare epoch number into a date you can say out loud, and how to catch the one unit mix-up that sends good timestamps back to 1970.

Published November 20, 2026 - A Verystep guide

Illustration of a wall clock beside a calendar page with a long row of tick marks running underneath

A Unix timestamp counts time from the epoch, 1970-01-01 00:00:00 UTC. The converter on this page reads three units and sorts out which one you pasted by counting digits: about 10 digits means seconds, 13 means milliseconds, 16 means microseconds. Paste a number into the Timestamp (seconds, milliseconds or microseconds) field, click → Date, and you get the moment twice, once in UTC and once in your local timezone, side by side. The reverse trip works too: pick a date in the …or date/time field, click → Timestamp, and you get the epoch value back. This guide walks through a real log-line check, verifies four landmark timestamps by hand, and shows the classic failure, a seconds value read as milliseconds, which quietly lands your event in January 1970.

Start from the number in front of you

You're halfway through an incident and the only timestamp anyone has is a bare integer in a log line: 1728000000. No date, no timezone, nothing to paste into a status update. That integer is a count of seconds since the epoch, the fixed zero point of Unix time, 1970-01-01 00:00:00 UTC. Everything the converter does is arithmetic on that count, and the one decision that matters is the unit, because the same moment can be written three ways. In seconds it's 1728000000. In milliseconds it's 1728000000000. In microseconds it's 1728000000000000. Same instant, three numbers that differ only in length.

That's why the tool keys off digit count instead of asking you to declare a unit first. Around 10 digits and it treats the value as seconds. Around 13 digits, milliseconds, which is what JavaScript hands you, since Date.now() returns milliseconds. Around 16 digits, microseconds, the unit some databases and tracing systems prefer. You don't have to convert anything before you paste. You do have to paste the whole number. Trim two digits off the end while copying and you've moved the event by days, and no converter can tell you that happened.

One habit saves confusion later. The converter shows every result in UTC and in your local timezone at the same time. Those two readings can fall on different calendar dates, and both are correct. When you report the moment to someone else, say which one you're quoting. "October 4" with no timezone attached is how a midnight UTC event turns into an argument about whether it happened on the 3rd or the 4th.

Convert a timestamp in seven steps

The forward direction, number to date, is steps one to four. Steps five and six run it backwards, from a date you know to the timestamp your system wants.

  1. Copy the timestamp exactly as it appears in the log line, API response or database row, including every digit.
  2. Paste it into the Timestamp (seconds, milliseconds or microseconds) field and let the digit count set the unit: about 10 digits is seconds, 13 is milliseconds, 16 is microseconds.
  3. Click → Date and read the UTC and local results side by side before you use either one.
  4. Check the result against what you expect: a date in January 1970 almost always means a seconds value was read as milliseconds.
  5. To go the other way, pick a date and time in the …or date/time field and click → Timestamp.
  6. Read the reverse result in seconds and confirm the digit count matches the unit your system expects.
  7. Record the converted date with its timezone written out, so the next person does not have to guess which one you meant.

Step four is the cheap insurance in this list. A conversion takes a second, and a sanity check takes another one. If the log line came from an error that happened this morning and the converter hands you a date during the Apollo program, the number or the unit is wrong, and finding that out now beats finding it out in the postmortem.

Worked examples: four landmarks, checked by hand

Run the log-line number first. Paste 1728000000, ten digits, so seconds. Click → Date and the UTC reading is 2024-10-04 00:00:00 UTC, exactly midnight at the start of October 4. Depending on where you sit, the local reading may show the evening of October 3, and that's the timezone doing its job, not an error. Your incident happened at midnight UTC; report it that way and the argument never starts.

Three more values pin down the scale. 1704067200 converts to 2024-01-01 00:00:00 UTC, the first second of 2024. Go further back and 1000000000 gives 2001-09-09 01:46:40 UTC, the moment the seconds count reached a billion, a date old hands still call the gigasecond. At the other end, 2147483647 converts to 2038-01-19 03:14:07 UTC. That number is the largest a signed 32-bit integer can hold, which is why systems still storing timestamps that way run out of road in January 2038. And the floor under all of it: 0 is 1970-01-01 00:00:00 UTC, the epoch itself.

Illustration of three rows of tick blocks growing denser from top to bottom, showing the seconds, milliseconds and microseconds scales
Same moment, three densities: seconds, milliseconds and microseconds differ only in how finely the count is sliced, which is why digit count gives the unit away.

Notice what the landmarks have in common. Each one is ten digits, each one lands somewhere sensible, and each one you can cross-check against a date you already trust, like New Year 2024. Keep one landmark in your head and you can eyeball an unfamiliar timestamp's rough era before you convert it at all.

The seconds-versus-milliseconds bug

Here's the failure that produces more bad dates than every other cause combined. A system stores seconds. Another system, often a JavaScript front end where Date.now() returns milliseconds, reads the value as milliseconds. The number doesn't change. The meaning does, by a factor of a thousand. Take 1704067200, the first second of 2024 in seconds. Read as milliseconds, that same integer is a count of about 19.7 days after the epoch, and it converts to 1970-01-20 17:21:07 UTC. Your New Year event now appears to have happened while Apollo 13 was still two months from launch.

The mirror image bug is just as quiet. Hand a milliseconds value like 1704067200000 to something expecting seconds and the date rockets tens of thousands of years into the future, or the code throws an out-of-range error if you're lucky. Lucky, because an error gets investigated and a plausible-looking wrong date gets copied into a report. The defence is step four, plus one question whenever you wire two systems together: which unit crosses this boundary? Write the answer in the handover doc, in the field name if you can, anything better than tribal knowledge. ts_seconds survives staff turnover. ts does not.

Limits worth knowing

Auto-detection reads digit count, and digit count is a strong signal rather than a proof. A seconds value from before September 2001 has nine digits, and one from after 2286 will have eleven, so very old or very far-future values sit outside the tidy 10, 13, 16 pattern. If a conversion looks off by roughly a factor of a thousand, suspect the unit before you suspect the date. The converter also works at whole-second precision in what it displays for the reverse direction, so don't use it to settle arguments about sub-second ordering in a trace. And a timestamp on its own carries no timezone at all. UTC and local are two readings of one instant, and the instant is the only thing the number ever stored.

Convert your timestamp now

The Verystep Unix Timestamp Converter shows the current epoch ticking live under Right now, takes a Timestamp (seconds, milliseconds or microseconds) with the unit auto-detected from the digit count, and converts both ways: click → Date for the UTC and local readings, or pick a date in the …or date/time field and click → Timestamp to go back. Everything runs in your browser and nothing is uploaded.

Open the Unix Timestamp Converter ->

Last verified November 20, 2026 — Timestamp (seconds, milliseconds or microseconds) field, Right now live display, …or date/time picker and the → Date and → Timestamp buttons checked against the live Verystep Unix Timestamp Converter, and every worked example recomputed offline: 1704067200 = 2024-01-01 00:00:00 UTC, 1728000000 = 2024-10-04 00:00:00 UTC, 1000000000 = 2001-09-09 01:46:40 UTC, 2147483647 = 2038-01-19 03:14:07 UTC, 0 = 1970-01-01 00:00:00 UTC, and 1704067200 read as milliseconds = 1970-01-20 17:21:07 UTC.

Frequently asked questions

How do I tell whether a timestamp is in seconds or milliseconds?

Count the digits. A current timestamp in seconds has 10 digits, in milliseconds 13, in microseconds 16. The converter uses exactly that signal to auto-detect the unit. If the source is JavaScript, assume milliseconds until proven otherwise, because Date.now() returns milliseconds.

Why did my timestamp convert to a date in January 1970?

Almost certainly a unit mismatch: a value counted in seconds was read as milliseconds, shrinking it to roughly the first weeks after the epoch on 1970-01-01. The worked example shows it directly: 1704067200, the first second of 2024 in seconds, lands on 1970-01-20 when read as milliseconds.

Which result should I quote, UTC or local?

Quote UTC for anything shared across timezones, logs and incident reports, and say so explicitly. Use the local reading for your own scheduling and for talking to people in your timezone. The converter shows both side by side precisely so you never have to convert one into the other in your head.

What happens at 2147483647?

That is the largest value a signed 32-bit integer can hold, and as a timestamp it is 2038-01-19 03:14:07 UTC. Systems still storing epoch seconds in 32 bits overflow there, the Y2K38 problem. Modern systems use 64-bit values, which push the limit so far out it stops being a practical concern.

Can I convert a date back into a timestamp?

Yes. Pick the date and time in the …or date/time field and click → Timestamp. You get the value in seconds. Before you paste it into another system, confirm that system expects seconds rather than milliseconds, and multiply by 1000 yourself if it wants milliseconds.

More guides