DEVELOPER PRECISION ENGINE

Timestamp / Unix Time Converter

Convert Unix timestamps to human-readable dates and vice versa — accurate for the core conversion. A previously-confirmed labeling gap is now fixed: the "Date Components" breakdown (year, month, day, hours, day of week) is clearly labeled "(local)" now, so it's no longer possible to mistake it for a UTC-based reading — it can still show a different calendar day than the separately-shown UTC string near your local midnight, but that's now disclosed on-screen. Ms-vs-seconds detection is fully automatic based on magnitude — there's no manual mode switch or timezone selector to toggle, despite what you may have read elsewhere.

Converted Date

Unix Seconds

1719043200

Unix Milliseconds

1719043200000

ISO 8601

2024-06-22T08:00:00.000Z

UTC String

Sat, 22 Jun 2024 08:00:00 GMT

Local String

6/22/2024, 8:00:00 AM

Date Components (local)

Year

2024

Month

6

Day

22

Hours

8

Minutes

0

Seconds

0

Day Of Week

Saturday

Relative Time

2 years ago

Leap Year

Yes

How to Use This Tool

1

Select conversion mode

timestamp → date or date → timestamp.

2

Enter the timestamp or date components

seconds vs. milliseconds is detected automatically from the number's magnitude, with no manual mode switch to set.

Pro Tip

Always check whether the timestamp you're debugging is in seconds or milliseconds before converting — a value like 1719424800000 looks similar to 1719424800 at a glance, but is 1,000× larger because it's in milliseconds, and converting it as seconds lands you in the year 56,462 instead of 2024. This tool detects that automatically, but if you're reading someone else's already-converted output, do the same magnitude check yourself: seconds-range Unix timestamps are currently around 1.7-1.8 billion, milliseconds-range ones around 1.7-1.8 trillion.

About This Tool

When to Use

  • Converting a Unix timestamp found in a database row or log entry into a readable date and time.
  • Checking whether a JWT's exp claim (in epoch seconds) corresponds to a sensible future expiry date.
  • Converting a specific future date and time into epoch milliseconds for a scheduled task or API payload.

Key Details

A Unix timestamp converter translates the seconds-since-January-1-1970 (epoch) format that databases, APIs, and log files use into human-readable dates, and back again, showing both UTC and local-time...

Worked example

Entering the Unix timestamp 1719424800 converts to Wednesday, June 26, 2024, 6:00:00 PM UTC (verified directly — this date was a Wednesday, not a Monday). Both the UTC string and your local-time string appear at once in the results, with no toggle needed to switch between them, and the milliseconds equivalent (1719424800000) is shown alongside the seconds value automatically. The "Date Components" section header now reads "Date Components (local)", making it immediately clear that its day, hours, and day-of-week fields reflect your browser's timezone rather than UTC.

Interpreting your result

The UTC String field is the one to trust for a timezone-agnostic reading of a timestamp — it's genuinely computed in UTC regardless of where you are. The Date Components (local) section is now clearly labeled, so if its day or day-of-week looks off by one compared to the UTC String, that's the expected, disclosed local-timezone behavior of that specific section, not a calculation error. Unix Seconds and Unix Milliseconds should always differ by exactly a factor of 1,000 for the same result — if a pasted value looks wrong by roughly that factor, you likely pasted the wrong unit for what you intended.

Timestamp / Unix Time Converter FAQ

What is a Unix timestamp?

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC, excluding leap seconds. It's the standard time representation used across most programming languages and databases.

Why are there two timestamp formats (seconds and milliseconds)?

Unix/POSIX time is defined in seconds. JavaScript's Date.getTime() returns milliseconds. Many APIs use seconds, while JavaScript and some databases use milliseconds. This converter auto-detects which format you're using based on the magnitude of the number, with no manual toggle needed.

What is the Year 2038 problem?

The Year 2038 problem (also called Y2K38 or Unix Millennium Bug) is that many systems store timestamps as signed 32-bit integers, which overflow on January 19, 2038. Modern systems use 64-bit integers or other representations. This converter handles timestamps beyond 2038 correctly.

How is leap year calculated?

A year is a leap year if: (a) it's divisible by 400, OR (b) it's divisible by 4 but NOT by 100. For example: 2000 was a leap year (divisible by 400), 1900 was not (divisible by 100 but not 400), 2024 is a leap year (divisible by 4).

What timezone does the converter use? Is the Date Components breakdown UTC or local?

Both UTC and local time are shown, and now both are clearly labeled. The "UTC String" field is genuinely UTC. The "Local String" field and the entire "Date Components (local)" breakdown (year, month, day, hours, minutes, seconds, and day of week) are all based on your browser's local timezone — the "(local)" label on the Date Components header makes this explicit, matching the labeling already present on Local String. This still has a real, concrete effect near your local midnight: a timestamp that falls on Monday 11:30 PM UTC can show as Tuesday in the Date Components breakdown for a user in a timezone ahead of UTC, even though the UTC String field correctly still says Monday — but that difference is now clearly signposted rather than silent. The underlying Unix timestamp number itself is always UTC-based and timezone-independent — only the human-readable breakdowns differ by field.

Why do timestamps differ between JavaScript and other systems?

JavaScript's Date.getTime() returns milliseconds, while Unix/POSIX timestamps are in seconds. This is the most common off-by-1000 error. A timestamp like 1719052800 is seconds (June 2024); 1719052800000 is the same moment in milliseconds. This tool auto-detects the format based on magnitude — confirmed via code read, the actual threshold is numbers greater than 10^11 (100 billion) are treated as milliseconds, comfortably between today's seconds-range timestamps (~1.7-1.8 billion) and milliseconds-range ones (~1.7-1.8 trillion).

Master Your Entire Toolkit

Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.

Built and reviewed by the Toolzip Team · Based on Unix Time — POSIX standard