Timestamp Converter
Trending 🔥Convert Unix timestamps to dates
How to Use Timestamp Converter
- 1Enter a Unix timestamp to convert to date
- 2Or enter a date/time to get the timestamp
- 3See the current timestamp updated every second
About Timestamp Converter
Unix Timestamp Converter translates Unix timestamps (the number of seconds or milliseconds elapsed since January 1, 1970 00:00:00 UTC) to human-readable dates, and converts human-readable dates back to Unix timestamps. The current timestamp is displayed and updated every second.
Unix timestamps are the universal language of time in software. Databases store dates as timestamps, API responses return them, logs are indexed by them. When a timestamp appears in a log or API response, this tool instantly tells you what date and time it represents.
All conversion runs in your browser using the JavaScript Date API. Both seconds and milliseconds are supported, and results are displayed in UTC, local time, and ISO 8601 format.
Key Features of Timestamp Converter
- Convert Unix timestamps to human-readable date and time
- Convert dates to Unix timestamps (seconds and milliseconds)
- Auto-detects seconds vs milliseconds based on timestamp length
- Displays results in UTC, local time, and ISO 8601 format
- Shows the current Unix timestamp updated every second
- Works entirely in-browser using the JavaScript Date API
- One-click copy for each output format
- Relative time display (e.g., "3 days ago" or "in 2 hours")
Examples
Convert a timestamp from an API log
Find out what date and time a Unix timestamp in a server log represents.
Input
1700000000
Output
UTC: Wed Nov 14 2023 22:13:20 UTC | ISO 8601: 2023-11-14T22:13:20.000Z
Get the Unix timestamp for a specific date
Find the timestamp to use as a parameter in an API query.
Input
2024-01-01 00:00:00 UTC
Output
Seconds: 1704067200 | Milliseconds: 1704067200000
Common Use Cases
- Decoding timestamps from server logs, database records, and API responses
- Checking token expiration times (exp claims in JWTs)
- Generating timestamp values for API query parameters (date range filters)
- Debugging time-related issues by converting timestamps to readable dates
- Verifying that a scheduled job ran at the expected time
- Converting timestamps for use in SQL queries with date comparison operators
Troubleshooting
Timestamp converts to a date in 1970 or a very early date
Solution
This usually means the timestamp is in seconds but was treated as milliseconds. A 10-digit number is typically seconds; a 13-digit number is milliseconds.
Date shows the correct day but wrong time
Solution
Unix timestamps are always in UTC. The local time display depends on your browser's timezone setting.
Negative timestamp value
Solution
Negative Unix timestamps represent dates before January 1, 1970. For example, -86400 represents December 31, 1969. These are valid.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds (or milliseconds) elapsed since the Unix epoch: January 1, 1970, 00:00:00 UTC.
How do I know if a timestamp is in seconds or milliseconds?
A 10-digit number is typically in seconds (valid until year 2286). A 13-digit number is typically in milliseconds. The tool auto-detects this.
What is the Unix epoch?
The Unix epoch is January 1, 1970, 00:00:00 UTC. All timestamps are the number of seconds counted from this moment.
What is ISO 8601 format?
ISO 8601 represents dates and times as strings, for example: 2023-11-14T22:13:20.000Z. The Z suffix indicates UTC.
Can Unix timestamps represent dates before 1970?
Yes. Negative timestamps represent dates before January 1, 1970. Both positive and negative are supported.
What is the maximum Unix timestamp value?
The maximum 32-bit signed Unix timestamp is 2,147,483,647 (January 19, 2038). JavaScript uses 64-bit integers supporting timestamps far beyond this.
Is my data sent to a server?
No. All conversion is performed locally using the JavaScript Date object.
Can I get the timestamp for a specific timezone?
Unix timestamps are always UTC. Use the Timezone Converter to adjust the display. Timestamps themselves are timezone-agnostic.