Skip to content

Unix Timestamp Converter

Paste a Unix timestamp in seconds or milliseconds and get the date in UTC, as an ISO 8601 string, in your local time and as a relative time. Or pick a date and time and get its timestamp. The current epoch time is always on screen, and nothing leaves your browser.

Current Unix timestamp (seconds)

…

Timestamp to date

Date to timestamp

How to Use the Unix Timestamp Converter

  1. 1. Timestamp to date. Type or paste a whole number under Timestamp to date. The tool detects whether it is seconds or milliseconds and shows the date in UTC, as an ISO 8601 string, in your local time and relative to now.
  2. 2. Date to timestamp. Pick a date and time under Date to timestamp. The result is given in seconds and in milliseconds, plus the UTC date. The time you pick is read in your device's local time zone.
  3. 3. Copy the current time. The box at the top counts the current Unix time in seconds. Copy puts it on your clipboard, which is handy for a log entry or a test fixture.
  4. 4. Check the detected unit. If the date looks wrong, the unit guess is the usual cause. See the limits below.

What a Unix Timestamp Is

A Unix timestamp counts the seconds since the epoch, 00:00:00 UTC on 1 January 1970. It names one instant and carries no time zone, so the same number means the same moment everywhere; only the way it is written out changes with the zone. POSIX defines it as if every day had exactly 86,400 seconds, so leap seconds are not counted.

JavaScript, Java and many databases count in milliseconds instead, which is the same number with three more digits. A seconds timestamp for a present-day date has 10 digits; the millisecond version has 13. Converting between them is a factor of 1,000. To get a date by hand, divide the timestamp by 86,400 for the days since 1970, or in a spreadsheet use =A1/86400+DATE(1970,1,1) and format the cell as a date-time.

Timestamp (seconds)UTC date and timeWhy it matters
01970-01-01 00:00:00The epoch
10000000002001-09-09 01:46:40The billionth second
17000000002023-11-14 22:13:20A round number from 2023
17536608002025-07-28 00:00:00Midnight UTC, the example shown in the input box
21474836472038-01-19 03:14:07The largest signed 32-bit value
41024448002100-01-01 00:00:00A date far past 2038

Limits and Gotchas

  • The unit is a guess. Any whole number larger than 1,000,000,000,000 is read as milliseconds; anything else is read as seconds — unless that would put the date past the year 9999, in which case it is read as milliseconds. A millisecond timestamp from roughly 1970 to early 1978 is small enough to pass as seconds, so check the date and switch the unit to milliseconds if it looks wrong.
  • Whole numbers only. A timestamp with a decimal part, such as 1700000000.5, is rejected. Drop the fraction, or convert fractional seconds to milliseconds by multiplying by 1,000.
  • Negative values work. They are moments before 1970: -86400 is 31 December 1969.
  • Local time is your device's. The Your local time row and the date picker use the time zone of your computer, so the same timestamp shows a different local time elsewhere. To compare cities, use the Time Zone Converter.
  • The year 2038. Systems that store the timestamp as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038. This converter uses JavaScript numbers and handles dates well beyond that.

Which Tool Do You Need?

You want to…Use
Convert an epoch number to a date, or a date to an epoch numberThis converter
Make a code that shows an event time in every Discord reader's own zoneDiscord Timestamp Generator
Express a date as an astronomical Julian Day or Modified Julian DateJulian Day Calculator
Show one wall-clock time in several citiesTime Zone Converter
Rewrite a calendar date as APA, MLA, Chicago or ISO 8601Date Format Converter

Frequently Asked Questions

What is a Unix timestamp?
A Unix timestamp, also called epoch time or POSIX time, is the number of seconds since 00:00:00 UTC on 1 January 1970. It is a compact, time-zone-independent way for computers to store a moment, and it is easy to sort, subtract and compare.
How do I tell seconds from milliseconds?
Count the digits. A present-day timestamp in seconds has 10 digits, such as 1753660800, and one in milliseconds has 13, such as 1753660800000. The tool treats any number above 1,000,000,000,000 as milliseconds and says which unit it assumed.
How do I convert a date to a Unix timestamp?
Pick the date and time under Date to timestamp. The tool reads your choice in your local time zone and returns seconds and milliseconds. If your device is set to UTC, midnight on 1 January 2026 gives 1767225600; elsewhere the number shifts by your offset.
Are Unix timestamps affected by time zones?
No. A timestamp always counts from the UTC epoch, so it is the same instant for everyone. Only its written form depends on the zone, which is why this tool shows UTC beside your local time.
What is the year 2038 problem?
A signed 32-bit integer tops out at 2147483647, which is 03:14:07 UTC on 19 January 2038. Software that stores timestamps that way will overflow then. Modern systems use 64-bit values, which will not run out for hundreds of billions of years.
Does it handle dates before 1970?
Yes. Negative timestamps are moments before the epoch, so -86400 is 31 December 1969, 00:00:00 UTC. Enter the minus sign followed by whole digits.
Is anything uploaded when I convert?
No. The conversion runs in your browser with JavaScript's built-in Date object, and nothing you type is sent to a server.

Related Tools

More in Unit, Date & Number Converters

See all Unit, Date & Number Converters