Unix Timestamp Converter
Convert Unix timestamps to dates and back, in seconds or milliseconds.
How to use the Unix Timestamp Converter
- 1Paste a timestamp or a date in any common format.
- 2Seconds, milliseconds and microseconds are detected automatically.
- 3Copy the result as ISO 8601, RFC 2822, local time or code snippets.
About Unix Timestamp Converter
The Unix Timestamp Converter turns epoch time into readable dates and back. Paste a timestamp and the unit is detected from its size, whether seconds, milliseconds, microseconds or nanoseconds, or set the unit yourself. You can also enter a date such as an ISO 8601 or RFC 2822 string, or words like now, today, 1 hour ago or in 30 days. The result is shown as Unix seconds and milliseconds, ISO 8601 in UTC and in the chosen time zone, RFC 2822, local time, relative time, day of year and ISO week.
A date-to-timestamp form converts a date and time in any time zone, the current Unix time ticks live with copy buttons, and a batch mode converts one value per line or a column from a dropped TXT, CSV or TSV file and copies the results as CSV. Code snippets show how to get and convert Unix time in JavaScript, Python, Java, Go, SQL (PostgreSQL, MySQL, SQLite) and Bash.
This epoch converter is useful for developers reading log files, API responses and database columns, checking token expiry times or debugging scheduled jobs.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since January 1, 1970, 00:00:00 UTC, the Unix epoch. It ignores leap seconds and does not depend on time zones, which makes it a common way to store and compare points in time.
How can I tell if a timestamp is in seconds or milliseconds?
For current dates, a timestamp in seconds has 10 digits, such as 1700000000, and one in milliseconds has 13. The converter detects the unit from the size of the number, and you can override it.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit integer run out at 2,147,483,647 seconds, which is 2038-01-19 03:14:07 UTC, and then wrap around to 1901. Storing timestamps as 64-bit integers avoids the problem.
Can I convert many timestamps at once?
Yes. Paste one value per line or drop a TXT, CSV or TSV file and pick the column, then copy the results as CSV with UTC and local time.
Guides
- Cron Expressions Explained (With Examples)What the five fields mean, how to read * / , and -, schedules you can copy, and the time zone and day-matching traps that make jobs run at the wrong moment.
- What Is a JWT and How Do You Decode It?JSON Web Tokens explained: the three parts, the common claims, what "signed" does and doesn't mean, and how to decode and verify a token safely.
More in Time & Date
Convert a time between cities and time zones, with daylight saving handled.
Find a meeting time that works across several time zones.
Count down to any date, and share the countdown as a link.