Timestamp Converter
Convert Unix timestamps to human-readable dates and vice versa. Support for seconds and milliseconds.
Features
- ✓Convert Unix timestamps to readable dates
- ✓Convert dates to Unix timestamps
- ✓Support for seconds and milliseconds
- ✓Display in multiple formats (ISO, UTC, local)
- ✓Show relative time (e.g., "2 hours ago")
- ✓Get current timestamp with one click
How to Use
- 1Enter a Unix timestamp (seconds or milliseconds) or a date string
- 2View the converted date in multiple formats
- 3Use "Now" to get the current timestamp
- 4Copy any format to your clipboard
- 5Use the date picker to select a specific date
Examples
Input
1704067200
Output
ISO: 2024-01-01T00:00:00.000Z UTC: Mon, 01 Jan 2024 00:00:00 GMT Unix (ms): 1704067200000
Input
1704067200000
Output
ISO: 2024-01-01T00:00:00.000Z Unix (s): 1704067200
Input
2024-06-15T14:30:00Z
Output
Unix (s): 1718461800 Unix (ms): 1718461800000 Relative: in 5 months
What is a Unix Timestamp?
A Unix timestamp (also called Epoch time or POSIX time) is a way of representing a point in time as a single number. It counts the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC - a moment known as the Unix Epoch. This simple representation makes timestamps easy to store, compare, and transmit between systems.
Unix timestamps are used extensively in computing because they are timezone-independent and require minimal storage space. They are found in databases, file systems, APIs, logging systems, and JWT tokens. JavaScript uses millisecond timestamps, while many Unix systems and APIs use second timestamps.
Converting between timestamps and human-readable dates is a common task for developers. When debugging APIs or database records, you often encounter timestamps that need to be interpreted. When building features like "posted 2 hours ago" or scheduling events, you need to convert dates to timestamps.
Our converter automatically detects whether you are entering a timestamp or a date string. It handles both second and millisecond precision, and displays the result in multiple formats: ISO 8601 (the standard for data interchange), UTC (for server logs), local time (for user display), and relative time (for UI text).
All conversions happen locally in your browser using JavaScript's built-in Date object. Your timestamps and dates are never sent to any server. The tool uses your browser's timezone for local time display but also shows UTC for unambiguous reference.