Epoch Converter
Convert between Unix timestamps and human-readable dates with timezone support
Epoch Converter
Auto-detects seconds or milliseconds based on value
How to Use Epoch Converter
- 1 Enter a Unix timestamp (seconds or milliseconds)
- 2 Or enter a date/time to convert to timestamp
- 3 Select your preferred timezone
- 4 Copy the result in your desired format
Input: 1704067200
Output: Mon Jan 01 2024 00:00:00 UTC
Input: 2024-12-31 23:59:59
Output: 1735689599
How do I convert a Unix timestamp to a date?
Enter the timestamp number (seconds or milliseconds), select your timezone, and the human-readable date appears instantly. Supports all date formats.
How do I convert a date to Unix timestamp?
Switch to Date → Epoch mode, enter your date using the date picker or type it (YYYY-MM-DD format), and get the Unix timestamp in seconds or milliseconds.
What is Unix epoch time?
Unix epoch is seconds since January 1, 1970 00:00:00 UTC. It is a universal way to represent time in computing, used in databases, APIs, and programming.
How do I tell if a timestamp is seconds or milliseconds?
Timestamps over 10 billion are milliseconds (13 digits). Seconds have 10 digits. The tool auto-detects based on value size.
How do I convert timestamps in different timezones?
Select the target timezone from the dropdown. The date/time adjusts to show local time in that zone. UTC is available for universal reference.
How do I get JavaScript or Python code for a timestamp?
The tool shows ready-to-use code snippets for JavaScript (new Date()), Python (datetime.fromtimestamp()), PHP, and SQL that you can copy directly.
How do I calculate the difference between two timestamps?
Use Difference mode. Enter two timestamps and see the exact difference in years, days, hours, minutes, and seconds.
How do I convert multiple timestamps at once?
Use Batch mode. Paste timestamps one per line, and all are converted simultaneously. Export results as TSV for spreadsheets.
All conversions happen locally in your browser. No data is sent to any server.