schedule

Unix Timestamp Converter

DEV

Convert Unix timestamps to dates and dates to seconds or milliseconds.

shield_lock Private & on-device
Live workspace
Preparing…
lock Your files and text are processed in this browser and never uploaded.
In-depth guide

About Unix Timestamp Converter

Unix Timestamp Converter: Epoch to Date and Back

Unix time counts the seconds elapsed since 1 January 1970 at 00:00:00 UTC, excluding leap seconds. This converter turns an epoch value into local time, UTC, ISO 8601 and a relative phrase such as “3 hours ago”, and it converts a local date and time back into seconds and milliseconds.

Automatic unit detection treats values with 13 or more digits as milliseconds, which covers current dates. You can also force seconds or milliseconds when working with older or synthetic data. A live clock at the top always shows the current epoch second, and one click copies it to the clipboard.

Why Timestamps Matter

Epoch values are compact, timezone-independent and easy to store in databases and APIs. They appear in JWT claims, logs, cache headers, cron schedules and event streams. Converting them correctly avoids off-by-a-thousand errors when a system expects milliseconds instead of seconds. All conversion happens locally in your browser.

Run through the agent API

Answers

Frequently asked questions

What is Unix time?

Unix time, also called epoch time, is the number of seconds since 1 January 1970 at 00:00:00 UTC. It is timezone-independent, which makes it convenient for databases, APIs and logs. The same instant displays differently depending on the viewer’s local timezone.

How do I tell seconds from milliseconds?

Current Unix timestamps in seconds have 10 digits, while millisecond timestamps have 13. Automatic detection in this tool uses that pattern. Values around 1.7 billion are seconds; values around 1.7 trillion are milliseconds.

Does the converter handle dates before 1970?

Yes. Negative timestamps represent dates before the Unix epoch. Enter a negative value and the converter will show the corresponding local, UTC and ISO date.

Which timezone is used for the output?

The timestamp is an absolute instant, so the tool shows it in both your browser’s local timezone and UTC. The date-to-timestamp input is interpreted in your local timezone, which is the same behaviour as JavaScript’s Date parsing.

Quick tips

  • Use the copy button to move formatted output straight into your editor.
  • Validation errors point to the exact position in your input.
  • All formatting and checks happen locally - nothing is uploaded.