Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Unix timestamp converter, epoch to date and back.

Paste a Unix timestamp and see the date and time in UTC, in your own time zone, in ISO 8601 and RFC 2822, in any other time zone you pick, and how long ago or from now it is. Seconds, milliseconds, microseconds and nanoseconds are told apart by their length, or you pick. Paste a date to get its timestamp, turn a date and time in any zone back into one, convert every timestamp in a log at once, and copy the current epoch time with one click.

Need a custom tool, app or website? Contact us 

Timestamp to date

Start and end of the day, month and year
Many timestamps at once

Paste a list or log lines. Every number of 9 to 19 digits gets its date written after it, in the unit set above.

Show times

Date to timestamp

Your time zone: .

Worked out in your browser. Nothing is sent anywhere.

Epoch time

Seconds since 1 January 1970.

01 / What

A count of seconds

A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds.

02 / Units

Told apart for you

Ten digits are seconds, thirteen milliseconds, sixteen microseconds and nineteen nanoseconds.

03 / Zones

UTC and yours

The same moment is shown in UTC and in your browser's time zone, with ISO 8601 for code.

Guide

How to convert a Unix timestamp, to a date and back.

A Unix timestamp converter turns a number like 1767225600 into a date you can read, and turns a date back into that number. The number counts seconds since midnight UTC on 1 January 1970, so 1767225600 is exactly 1 January 2026 at 00:00:00 UTC. This converter shows the result in UTC, in your own time zone, in ISO 8601 and in RFC 2822, says how long ago or from now it is, and copies the current epoch time with one click.

How to use the timestamp converter

  1. Paste your number into the Timestamp or date box under Timestamp to date. Commas, spaces and underscores are ignored, so 1,767,225,600 works too. You can also paste a date, like 2026-01-01T00:00:00Z, to get its timestamp.
  2. Leave Unit on Guess from length, or pick Seconds, Milliseconds, Microseconds or Nanoseconds if you know which one you have.
  3. Read the rows that appear: UTC, your time, ISO 8601 in UTC and with your offset, RFC 2822, seconds, milliseconds, the day of the year with the ISO week, and the spreadsheet serial date. The line above them says which unit was used and how far from now the moment is.
  4. To see the same moment somewhere else, pick a zone in Also in this time zone. Clock switches between 24 hour and 12 hour times.
  5. Click Copy next to any row to copy that format.
  6. To go the other way, set a Date and time under Date to timestamp, then choose whether That time is in your time zone, UTC or any other zone. You get the timestamp in seconds and in milliseconds, plus ISO 8601 and that zone's offset on that date.
  7. Click the large ticking number at the top to copy the current timestamp in seconds, or click Use now to load it into the box. Copy link gives a link that opens the page with your timestamp.

Seconds, milliseconds, microseconds or nanoseconds

The same moment can be written in four common units, and the only quick way to tell them apart is the number of digits. When the unit is set to Guess from length, the tool reads up to 11 digits as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds, and anything longer as nanoseconds.

UnitDigits today1 Jan 2026, 00:00 UTCWhere you see it
Seconds101767225600Unix and Linux tools, PHP, most databases and APIs
Milliseconds131767225600000JavaScript Date.now(), Java, many JSON APIs
Microseconds161767225600000000Some databases and logging systems
Nanoseconds191767225600000000000Go, high precision logs and tracing

The guess fails for very early dates, because a timestamp from 1970 is a short number in any unit. If the date you get looks wrong by decades, pick the unit by hand.

A worked example with time zones

A timestamp has no time zone. It is one moment for the whole planet, and only the way you display it changes. That is why the tool shows UTC and your local time side by side.

Say a log line says an event happened at 1792229400. The tool shows Saturday, 17 October 2026 at 09:30:00 UTC. In a time zone six hours ahead of UTC, the same moment is 15:30. Now try the reverse. Set the date to 17 October 2026, 09:30, and switch That time is in between UTC and My time zone. In UTC you get 1792229400. If your zone is six hours ahead, you get 1792207800, which is 21,600 seconds smaller, exactly six hours. Picking the wrong option here is the most common reason a converted timestamp is off by a whole number of hours.

Start and end of a day, month or year

Open "Start and end of the day, month and year" to get the first and last second of the day, the month and the year your timestamp falls in, in your time zone or in UTC. These are the numbers to use in a database query for "everything on 17 October". For 1792229400 in UTC, the day runs from 1792195200 to 1792281599, the month starts at 1790812800 and the year runs from 1767225600 to 1798761599.

Many timestamps at once

Open "Many timestamps at once" and paste a list or a few lines from a log. Every number of 9 to 19 digits gets its date written in brackets right after it, in UTC or your time zone, and the rest of each line stays as it was. A line like end 1792229400000 becomes end 1792229400000 (2026-10-17T09:30:00Z). Copy result takes the whole lot.

What the output formats are for

  • UTC is the reference time. Use it when you compare logs from servers in different places.
  • Your time uses the time zone your browser reports, shown under the date picker. It follows daylight saving time for that date.
  • ISO 8601, like 2026-01-01T00:00:00.000Z, is the safest format to paste into code, JSON or a spreadsheet. The Z means UTC.
  • RFC 2822, like Thu, 01 Jan 2026 00:00:00 +0000, is the style used in email headers.
  • Day and week gives the day of the year and the ISO 8601 week, where weeks start on Monday and week 1 holds the first Thursday of the year.
  • Spreadsheet is the serial date that Excel, Numbers and Google Sheets use, counted in days, in UTC. 1767225600 is 46023, which a cell formatted as a date shows as 1 January 2026.

Dates before 1970 and far in the future

Timestamps can be negative. -86400 is one day before the epoch, so it shows as 31 December 1969 at 00:00 UTC. Decimals work too: 1767225600.5 is half a second past midnight. Very large numbers that fall outside the range a browser can show give a clear message instead of a wrong date.

The year 2038 problem comes from the largest number a signed 32-bit counter can hold, 2147483647. Paste it in and you will see 19 January 2038 at 03:14:07 UTC, the last second such a counter can store.

Common problems and the fix

  • The date is in 1970. You probably read milliseconds as seconds after setting the unit by hand. Set it back to Guess from length.
  • The date is tens of thousands of years away. The opposite mistake: seconds read as milliseconds or smaller. Check the digit count against the table.
  • The time is off by a few hours. Compare the UTC row with your local row, and check the That time is in setting when converting a date.
  • "Not a timestamp or a date". The box takes digits, with an optional minus sign and one decimal point, or a date written out. Remove quotes or labels copied from a log, or paste the whole log into "Many timestamps at once".
  • A pasted date is off by your offset. A date with no zone, like 2026-01-01 09:30, is read in your time zone. Add Z or +00:00 at the end for UTC.

On a Mac

You can also get the current timestamp in Terminal by typing date +%s. To read a timestamp in seconds as a UTC date, type date -u -r 1767225600. Leave out -u to see it in your Mac's time zone.

Need to schedule something at a set time? The cron expression generator builds the schedule line, and the time zone converter lines up a meeting time across cities.

Questions

Good to know.

What is a Unix timestamp?

The number of seconds since 1 January 1970 at midnight UTC. Many systems store time this way.

Is my timestamp in seconds or milliseconds?

Usually 10 digits means seconds and 13 means milliseconds. The page guesses from the length.

How do I convert a date to a timestamp?

Pick the date and time under Date to timestamp and say which time zone it is in: yours, UTC or any other. Or paste a written date into the Timestamp or date box.

What is the year 2038 problem?

Signed 32-bit counters of seconds run out on 19 January 2038. Most systems now use 64 bits.

Is anything sent anywhere?

No.

What is the current Unix timestamp?

It is the large number ticking at the top of the tool, in seconds, with the milliseconds under it. Click it to copy the value at that moment.

Why is it called epoch time?

An epoch is a fixed starting point for counting time. Unix systems chose midnight UTC on 1 January 1970, so a count from that point is called epoch time or Unix time.

Does a Unix timestamp change with daylight saving time?

No. The count of seconds keeps going up at the same rate all year. Only the local clock time shown for it moves an hour when daylight saving starts or ends.

How do I convert milliseconds to seconds?

Divide by 1,000 and drop the decimals. 1767225600000 milliseconds becomes 1767225600 seconds.

Can I convert a timestamp to another time zone?

Yes. Pick the zone in Also in this time zone and a row shows the same moment there, with its offset from UTC on that date.

Can I convert many timestamps at once?

Yes. Paste them, or whole log lines, into Many timestamps at once. Each one gets its date in brackets after it.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch