Convert seconds, milliseconds or ISO dates. Choose explicit units when needed, compare timezones and copy precise results.
Auto assumes seconds below 100 billion, otherwise milliseconds. Select a unit for ambiguous values. ISO dates without an offset use UTC. Precision: one millisecond.
Days mean 24 hours. Months and years use the UTC calendar, clamping to the last day of the target month.
Frequently searched conversions. All timestamps at 00:00:00 UTC. Click any card to copy.
Everything you need to know about Unix timestamps and date conversion.
A Unix timestamp is the number of seconds elapsed since January 1, 1970 (UTC), known as the Unix epoch. It is a standard way to represent dates and times in programming across all languages and platforms.
One second is 1,000 milliseconds. Timestamps can be short, negative or fractional. Auto treats numeric values below 100 billion as seconds and larger magnitudes as milliseconds. Choose Seconds or Milliseconds explicitly for ambiguous values. ISO dates without an offset use UTC.
JavaScript: Math.floor(Date.now()/1000) — Python: import time; int(time.time()) — The tool also shows live code snippets for PHP, Go, and Rust.
The largest signed 32-bit Unix timestamp is 2147483647, or January 19, 2038 at 03:14:07 UTC. Systems using that representation need a wider timestamp type. This converter also supports later dates within the browser date range.
Use the Date Math section after entering a valid timestamp. Seconds through weeks use elapsed durations; one day is 24 hours. Whole months and years use the UTC calendar, clamping to the final day of the target month. Invalid amounts clear the result.
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC — known as the Unix Epoch. It is the universal standard for representing time in software, used by databases, APIs, programming languages, and operating systems worldwide.
Here are frequently searched Unix timestamp values for reference:
To convert any date to a Unix timestamp, enter the date or paste an existing timestamp in the input above and the converter will instantly show you the result in seconds, milliseconds, UTC, local time, ISO 8601 format, and relative time. You can also click any of the famous date buttons to quickly load a common timestamp.
Get the current Unix timestamp in your language:
Python: int(time.time()) —
JavaScript: Math.floor(Date.now()/1000) —
PHP: time() —
Go: time.Now().Unix()
Each example gives the timestamp for midnight UTC. Use the converter above for a different time or timezone.