Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates
About
This Unix timestamp converter allows you to convert between Unix timestamps (seconds since January 1, 1970) and human-readable dates. It supports multiple date formats and time zones. Useful for working with timestamps in logs, APIs, and databases. ### How to Use 1. Enter or paste your data in the input field. 2. Adjust any available settings or options. 3. Click the action button to process. 4. Copy or download the result.
Try It Now
Convert between Unix timestamps and human-readable dates. Unix timestamp is the number of seconds since January 1, 1970 (UTC).
Conversion Results
Usage Examples
JavaScript
// Get current timestamp in seconds
const timestamp = Math.floor(Date.now() / 1000);
// Convert timestamp to date
const date = new Date(timestamp * 1000);
console.log(date.toLocaleString());PHP
// Get current timestamp
$timestamp = time();
// Convert timestamp to date
$date = date('Y-m-d H:i:s', $timestamp);
echo $date;About Unix Timestamps
A Unix timestamp (also known as Epoch time) is the number of seconds that have elapsed since January 1, 1970 (00:00:00 UTC).
It's widely used in computing because it represents a universal time format that's easy to work with across different systems.
Timestamps can be represented in seconds (10 digits) or milliseconds (13 digits). This tool automatically detects and handles both formats.
Examples
Input
1609459200
Output
January 1, 2021 00:00:00 UTC
Unix timestamp to date conversion
FAQ
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.
Does it support milliseconds?
Yes, the tool supports both seconds and milliseconds timestamps.
Is this tool free?
Yes, this tool is completely free to use.
Is my data secure?
Yes, all processing is done in your browser. Your data is not sent to any server.
Does it work offline?
Yes, once the page is loaded, you can use the tool offline.