Timestamp Converter
Convert Unix timestamps to readable dates and dates back to Unix timestamps.
Category: Date & Time
When to use?
Use it to find what date a Unix timestamp in a server log or API response represents, or to convert a date into a timestamp for a DB query or API request. A frequent need in development and debugging.
How to use
- Timestamp → date: enter a numeric timestamp to see the date and time.
- Date → timestamp: pick a date and time to see its timestamp.
- The "Now" button fills in the current timestamp automatically.
Input Explanation
10-digit numbers are detected as seconds and 13-digit numbers as milliseconds. Negative timestamps (before 1970) are supported.
Calculation Basis
A Unix timestamp is the seconds (or milliseconds) elapsed since 1970-01-01 00:00:00 UTC. Both local time and UTC results are shown.
Usage Examples
- Decode a log timestamp - Convert a Unix timestamp from a server log into a readable date.
- Check an API date - Quickly see what date an API's epoch value represents.
- Convert a date to timestamp - Get the Unix timestamp of a specific date for a DB query.
Examples
- Timestamp 1700000000 → 2023-11-15 07:13:20 (KST)
- 2024-01-01 00:00:00 KST → timestamp 1704034800
Cautions
- 10-digit and 13-digit timestamps use different units (seconds/milliseconds). Check the digit count.
- Confusing the UTC base with your local system time zone causes a 9–15 hour conversion error.
Guides
What a Unix timestamp is
A Unix timestamp is the seconds (or milliseconds) since 1970-01-01 00:00:00 UTC. It is common for storing dates as numbers in programming and API responses.
Seconds vs. milliseconds
JavaScript's Date.now() uses milliseconds, while servers and databases often use seconds. Check the digit count before converting to decide which it is.
FAQ
Are both seconds and milliseconds supported?
Yes — 10 digits are detected as seconds, 13 digits as milliseconds.
Can I get the current timestamp instantly?
Press the Now button to fill in the current timestamp automatically.
Is it local time or UTC?
Both local and UTC are shown together.
Are negative timestamps handled?
Yes, negative timestamps before 1970-01-01 are supported.
Related Tools
- Date Difference Calculator - Calculate the number of days between two dates, or the date N days from a reference date.
- D-Day Calculator - Show the days remaining until, or elapsed since, a target date based on today.
- Age Calculator - Calculate your exact age, this year's birthday status, and days until your next birthday.
- Time Calculator - Add or subtract time from a clock time, and calculate the interval between two times.
- Months Between Dates Calculator - Calculate total months, days, and a year/month/day breakdown between two dates.
- Day of the Week Calculator - Find the day of the week for a date and its day difference from today.