Timestamp Converter
Convert between Unix timestamps and dates
Current Timestamp
Timestamp to Date
Enter a Unix timestamp - automatically detects seconds or milliseconds
Date to Timestamp
Enter a date in any standard format
What is a Unix Timestamp?
A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since January 1, 1970 00:00:00 UTC (the Unix epoch). It's a simple way to represent dates and times as a single number.
How to Use
- View the current timestamp at the top (updates in real-time)
- Convert a timestamp to a readable date by entering it and clicking "Convert to Date"
- Convert a date to a timestamp by entering it and clicking "Convert to Timestamp"
Timestamp Formats
- Seconds: 10 digits (e.g., 1704067200)
- Milliseconds: 13 digits (e.g., 1704067200000)
This tool automatically detects whether your timestamp is in seconds or milliseconds and converts accordingly.
Supported Date Formats
When converting dates to timestamps, you can use various formats:
- ISO 8601: 2024-01-15T10:30:00Z
- US format: 01/15/2024
- European format: 15/01/2024
- Text format: January 15, 2024
- Short format: Jan 15, 2024
Frequently Asked Questions
What's the difference between seconds and milliseconds?
Unix timestamps can be in seconds (10 digits) or milliseconds (13 digits). Seconds are more common in backend systems, while JavaScript uses milliseconds. This tool automatically detects which format you're using.
Why does my timestamp convert to the wrong date?
Make sure you're using the correct format (seconds vs milliseconds). If your timestamp has 10 digits, it's in seconds. If it has 13 digits, it's in milliseconds.
What timezone is used?
Unix timestamps are always in UTC (Coordinated Universal Time). The displayed dates are in ISO 8601 format with UTC timezone (indicated by the 'Z' suffix).
Can I convert dates with timezones?
Yes! You can include timezone information in your date string (e.g., "2024-01-15T10:30:00-05:00" for EST). The tool will parse it correctly.