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 (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC, the Unix epoch. 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, which 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)2024-01-15T14:30:00.000Z
ISO 8601 (with offset)2024-01-15T14:30:00+05:30
ISO 8601 (date only)2024-01-15
RFC 2822Mon, 15 Jan 2024 14:30:00 GMT
Locale stringJanuary 15, 2024 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 2024-01-15T14: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 2024-06-15T09:00:00Z), and the Unix timestamp in both seconds and milliseconds appears in the output immediately.

Related Tools