Unix Timestamp Converter

Your data never leaves your browser

Convert Unix timestamps to human-readable dates, or dates to timestamps. Supports seconds and milliseconds.

Enter a Unix timestamp aboveor click Now ↺ to use the current time
Ctrl+Shift+CCopy AllCtrl+KClearHover any row to copy individual values

Share this tool

Found it useful? Help a fellow developer discover it.

https://developertoolkit.dev/tools/timestamp-converter

What is a Unix timestamp?

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. This moment is known as the Unix epoch. It is also called epoch time or POSIX time. It is the most common way to represent a point in time in software because it is a single integer with no timezone ambiguity. Every programming language, database, and operating system can convert it to a human-readable date in any timezone.

JavaScript's Date.now() returns milliseconds, not seconds. This is a common source of bugs. This converter supports both. 10-digit numbers are treated as seconds. 13-digit numbers are milliseconds.

How to use

  1. Select the direction: Timestamp → Date to decode a Unix timestamp, or Date → Timestamp to encode a human-readable datetime.
  2. When decoding, choose whether your timestamp is in seconds (10 digits) or milliseconds (13 digits).
  3. Paste or type your value. Results appear instantly. ISO 8601, UTC, local time, relative time, and both Unix representations are shown simultaneously.
  4. Click Now ↺ to populate the input with the current timestamp.
  5. Hover any result row and click Copy to copy that specific format.

Accepted date formats

FormatExample
ISO 8601 (UTC)2026-03-16T14:30:00.000Z
ISO 8601 (with offset)2026-03-16T14:30:00+05:30
ISO 8601 (date only)2026-03-16
RFC 2822Mon, 16 Mar 2026 14:30:00 GMT
Locale stringMarch 16, 2026 14:30:00

Frequently Asked Questions

How do I convert a Unix timestamp to a readable date?

Select the Timestamp to Date direction, choose Seconds or Milliseconds depending on your timestamp length (10 digits for seconds, 13 for milliseconds), paste your timestamp into the input, and the results appear instantly. ISO 8601, UTC, local time, and relative time are all shown simultaneously so you can copy whichever format you need.

What is the current Unix timestamp?

Click the Now button to populate the input with the current Unix timestamp in seconds. The output updates to show today's date and time across all formats. Refresh or click Now again to get a fresh timestamp. The current time is read from your device clock and converted entirely in your browser.

Why does my timestamp have 13 digits instead of 10?

A 10-digit Unix timestamp represents seconds since the epoch. JavaScript's Date.now() and many modern APIs return milliseconds, a 13-digit number that is 1000 times larger. Use the Milliseconds option in this converter when you have a 13-digit value.

What is the Year 2038 problem?

32-bit signed integers overflow at 2,147,483,647, which corresponds to January 19, 2038. Systems that store timestamps as 32-bit integers, including older C code and some databases, will break at that point. Most modern systems use 64-bit integers, which will not overflow for billions of years.

Why does the converter show a different time than my local clock?

The ISO 8601 and UTC fields always show the time in UTC. The Local field shows the time in your browser's detected time zone. If you see a discrepancy, check whether your input is in seconds or milliseconds. That mismatch is the most common source of confusion.

Does this tool send my timestamps to a server?

No. All conversion logic runs entirely in your browser using JavaScript's built-in Date API. Nothing is sent to a server.

What date formats can I type in Date to Timestamp mode?

The converter accepts any string that JavaScript's Date constructor can parse: ISO 8601 (recommended), RFC 2822, and many locale-aware strings. ISO 8601 with an explicit timezone such as 2026-03-16T14:30:00Z is the most reliable format across all browsers.

How do I convert a date string to a Unix timestamp?

Select the Date to Timestamp direction, type or paste a date string in the input field (ISO 8601 format is most reliable, for example 2026-06-15T09:00:00Z), and the Unix timestamp in both seconds and milliseconds appears in the output immediately.

What does converting a 'long' timestamp to a date mean?

In Java and C#, a millisecond epoch timestamp is typically stored as a long (a 64-bit integer), so developers often search for 'long to date' or 'long timestamp' when they really mean a millisecond Unix timestamp. It's the same 13-digit number this converter already handles. Select Milliseconds and paste the value in.

Is a timecode the same as a Unix timestamp?

Not usually. 'Timecode' more often refers to a video or audio position (hours:minutes:seconds:frames, as in SMPTE timecode) rather than a point in calendar time. If what you actually have is a 10 or 13-digit number representing seconds or milliseconds since 1970, that's a Unix timestamp and this converter handles it directly.

Related Tools

From the Blog

The Y2K38 Problem Is Real and Most Systems Are Not Ready for It

An explainer on the Unix timestamp overflow event on January 19, 2038 and why every developer writing date-handling code needs to understand it.

Read article