Skip to content
Toolew.com

Unix Timestamp Converter

Convert Unix epoch timestamps in seconds, milliseconds, microseconds or nanoseconds to dates in any time zone, and back.

Runs in your browser. Your data is not uploaded.
Loading tool…

This guide is not yet available in your language and is shown in English.

Tool guide

What this tool does

Unix Timestamp Converter turns epoch numbers into readable dates and dates into epoch numbers. It auto-detects seconds, milliseconds, microseconds and nanoseconds, shows ISO 8601, RFC 2822 and zone-specific times, ticks a live epoch clock and converts whole lists at once with CSV export.

Logs, databases, JWTs and APIs store time as a Unix timestamp: the number of seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. The number is compact and unambiguous, but 1700000000 means nothing at a glance, and it is easy to confuse seconds with the milliseconds that JavaScript, Java and many message queues use.

This converter detects the unit from the length of the number: 10 digits are seconds, 13 are milliseconds, 16 are microseconds and 19 are nanoseconds, and you can override the guess. Results are shown in UTC and in any IANA time zone using your browser’s built-in time-zone database, so daylight-saving changes are handled correctly. Large microsecond and nanosecond values are parsed with BigInt to avoid rounding, and all conversion happens on your device.

How to use Unix Timestamp Converter

  1. Read the current epoch time in seconds and milliseconds at the top; use the copy buttons to grab it.
  2. Choose your Time zone; the tool starts with the zone your browser reports.
  3. Type or paste a number into Unix timestamp to see ISO 8601, RFC 2822, the zoned time, weekday and relative time.
  4. To go the other way, pick a date and time under Date to timestamp; it is interpreted in the selected zone.
  5. For many values, paste one timestamp or date per line into Batch convert and download the table as CSV.
  6. If a value is detected in the wrong unit, set Timestamp unit explicitly.

Tips for better results

  • JWT exp, iat and nbf claims are in seconds; JavaScript Date.now() returns milliseconds.
  • Signed 32-bit timestamps overflow at 2147483647, which is 03:14:07 UTC on 19 January 2038. Store time in 64-bit fields.
  • Negative timestamps are valid and represent dates before 1970, for example -86400 is 31 December 1969.
  • Batch mode also accepts ISO dates such as 2024-02-29T12:00:00Z and returns their epoch seconds and milliseconds.

Common use cases

  • Reading created_at and updated_at values from database exports and logs.
  • Checking when a JWT or signed URL expires.
  • Converting a meeting or release time in one zone into an epoch value for configuration.
  • Converting a column of timestamps for a spreadsheet or incident report.

Common mistakes to avoid

  • Treating milliseconds as seconds, which produces dates tens of thousands of years in the future.
  • Forgetting that a date without a zone is ambiguous; always check which zone the Date to timestamp field uses.
  • Assuming Unix time counts leap seconds. It does not, so every day is exactly 86,400 seconds.

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds elapsed since the Unix epoch, 00:00:00 UTC on 1 January 1970, not counting leap seconds. The same instant has the same timestamp everywhere in the world, regardless of time zone.

How do I tell seconds from milliseconds?

For current dates, a seconds timestamp has 10 digits and a milliseconds timestamp has 13. The converter uses this rule automatically, and you can force a unit if you are working with very old or very distant dates.

What is the Year 2038 problem?

Systems that store Unix time in a signed 32-bit integer can count only up to 2,147,483,647 seconds, reached on 19 January 2038. After that the value wraps to a negative number. 64-bit storage avoids the issue.

Which format should I use in APIs?

ISO 8601 strings with a zone designator, such as 2025-06-01T09:30:00Z, are readable and unambiguous. Epoch seconds or milliseconds are more compact. Either works if you document the unit clearly.

Feedback & suggestions

Help us improve Unix Timestamp Converter. We read every message.

Rating (optional)
Necessary
Required for security, language and theme preferences. Always on.