Unix timestamp converter
Turn epoch time into a date you can read, and back again.
Current Unix time
··········
Timestamp to date
Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds
Date to timestamp
Pick a date, or paste one like 2024-03-01 09:30 or 2024-03-01T09:30:00+10:00
Next: UUID generator · JWT decoder
Report a problem with this tool
How to use Unix timestamp converter
Paste a timestamp
Type or paste a Unix timestamp. Seconds, milliseconds, microseconds and nanoseconds are recognised by their length.
Or pick a date
Choose a date and time, or paste an ISO 8601 date, and say whether it’s in your local time or UTC.
Copy the result
Copy the date in the format you need, or the timestamp in seconds or milliseconds.
Why use Utils365
Every common format
Your local time, UTC, ISO 8601, RFC 2822, the day of the week and how long ago it was, side by side.
Knows the unit
A 10-digit number is read as seconds and a 13-digit one as milliseconds. You can always choose the unit yourself.
A live clock
The current Unix time ticks at the top of the page, ready to copy in seconds or milliseconds.
Private by design
Everything is worked out in your browser, so nothing you type is sent anywhere.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 1 January 1970 at midnight UTC, known as the Unix epoch. It’s how most computers and databases store a moment in time, because it’s the same everywhere in the world.
How do I tell seconds from milliseconds?
Count the digits. A timestamp for a date in recent years has 10 digits in seconds and 13 in milliseconds. JavaScript and Java usually use milliseconds; Unix, PHP and Python usually use seconds.
Can a Unix timestamp be negative?
Yes. Negative numbers are dates before 1970. For example, -86400 is 31 December 1969 at midnight UTC.
Does a Unix timestamp have a time zone?
No. It always counts from midnight UTC, so the same timestamp is the same moment everywhere. Only the way it’s shown as a date depends on the time zone.
What is the year 2038 problem?
Systems that store timestamps as a signed 32-bit number run out on 19 January 2038 at 03:14:07 UTC (2147483647). Modern systems use 64-bit numbers, which last for billions of years.
How do I get the current timestamp in code?
In JavaScript, Math.floor(Date.now() / 1000). In Python, int(time.time()). In a Linux or macOS terminal, date +%s.