Timestamp Converter
Convert Unix timestamps to dates
Convert between Unix timestamps and human-readable dates, view times in multiple time zones, and compare two timestamps. Use the controls below to input time in your preferred format.
Input Time
Time Difference
About Unix Timestamp Converter
1What is it?
Convert between Unix timestamps and human-readable dates. This essential developer tool handles both seconds and milliseconds timestamps, shows multiple timezone formats, and lets you convert any date to a timestamp. Perfect for debugging logs, working with APIs, or understanding when events occurred.
2Use Cases
- Debug timestamps in API responses and logs
- Convert log file timestamps to readable dates
- Generate timestamps for database records
- Calculate time differences between events
- Understand when cached data expires
- Set cookie and session expiration times
- Convert between different timestamp formats
3Examples
Unix seconds to date
Input
1700000000
Output
Tuesday, November 14, 2023 10:13:20 PM UTC
Unix milliseconds to date
Input
1700000000000
Output
Tuesday, November 14, 2023 10:13:20 PM UTC
?Frequently Asked Questions
What's the difference between seconds and milliseconds timestamps?
Unix timestamps in seconds have 10 digits (e.g., 1700000000). Milliseconds timestamps have 13 digits (e.g., 1700000000000). JavaScript's Date.now() returns milliseconds, while most server-side languages use seconds. This tool auto-detects which format you're using.
What timezone is used for display?
The tool shows times in your local timezone (based on your browser settings) and also displays UTC and ISO 8601 formats. This helps you understand both the local and universal time representation.
What is Unix epoch time?
Unix epoch (or Unix time) counts seconds since January 1, 1970 00:00:00 UTC. This is the standard way computers store time because it's a simple number that's easy to compare and calculate. Dates before 1970 are negative numbers.
Why do timestamps look different across systems?
Some systems use seconds, others use milliseconds. Some APIs return timestamps as strings, others as numbers. The timezone interpretation can also vary. Always clarify the timestamp format when working with external systems.
How do I get the current timestamp?
In JavaScript: Math.floor(Date.now() / 1000) for seconds, or Date.now() for milliseconds. In Python: int(time.time()). In PHP: time(). In Bash: date +%s. This tool also shows the current timestamp updating in real-time.