Timestamp Converter
Convert between Unix timestamp and human-readable date/time. Support for multiple timezones and formats.
Full Date & Time
ISO Format
Readable Format
Unix Timestamp (Seconds)
Unix Timestamp (Milliseconds)
Current Time
Key Features
🌍 Timezone Support
Convert timestamps across multiple timezones including local time and UTC.
⏱️ Bidirectional Conversion
Convert Unix timestamp to date and vice versa with ease.
📱 Real-time Updates
See current time in different formats and timezones instantly.
⚡ Multiple Formats
View results in ISO format, readable format, and full datetime.
Frequently Asked Questions
Getting Started
What is a Unix timestamp?
A Unix timestamp (or Epoch time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC (the Unix Epoch). It's a standard way to represent time as a single integer number, making it easy to store, compare, and transfer time data.
What's the difference between seconds and milliseconds?
Unix timestamps are traditionally in seconds, but many programming languages (JavaScript, Java) use milliseconds for higher precision. To convert: seconds × 1000 = milliseconds, or milliseconds ÷ 1000 = seconds. This tool displays both formats.
How accurate is the conversion?
The conversion is accurate to the second. All calculations happen locally in your browser using JavaScript's Date API. The tool handles leap years, timezone offsets, and daylight saving time automatically.
Using the Converter
How do I convert Unix to Date?
Select "Unix → Date" mode, enter the Unix timestamp (in seconds), and optionally choose a timezone. The tool will instantly show the date in multiple formats: full datetime, ISO format, and human-readable format.
How do I convert Date to Unix?
Select "Date → Unix" mode, enter your date and time using the datetime picker, and the tool will show both the seconds and milliseconds Unix timestamps. Click "Copy" to copy either value to your clipboard.
Why do I need timezone support?
The same Unix timestamp represents different local times in different timezones. For example, timestamp 1704067200 is midnight UTC, but 8:00 AM in Shanghai (CST). Timezone support helps you understand what a timestamp means in any location.
Examples
Example: Common Unix timestamps
Notable timestamps:
0 = 1970-01-01 00:00:00 UTC (Epoch) 1000000000 = 2001-09-09 01:46:40 UTC 1704067200 = 2024-01-01 00:00:00 UTC 2000000000 = 2033-05-18 03:33:20 UTC
Example: Convert timestamp to date
Input: 1704067200
In UTC: 2024-01-01 00:00:00
In New York (EST): 2023-12-31 19:00:00
In Shanghai (CST): 2024-01-01 08:00:00
Example: Date to timestamp
Date: 2024-06-15 12:30:00 UTC
Unix (seconds): 1718454600
Unix (milliseconds): 1718454600000
Programming & APIs
How do I get current timestamp in code?
JavaScript:
const seconds = Math.floor(Date.now() / 1000); const milliseconds = Date.now();
Python:
import time seconds = int(time.time())
PHP:
$timestamp = time();
How do I convert timestamp to date in code?
JavaScript:
const date = new Date(timestamp * 1000); console.log(date.toISOString());
Python:
from datetime import datetime
date = datetime.fromtimestamp(timestamp)
print(date.strftime('%Y-%m-%d %H:%M:%S'))
Common timestamp formats
ISO 8601: 2024-01-01T00:00:00.000Z RFC 2822: Mon, 01 Jan 2024 00:00:00 GMT SQL: 2024-01-01 00:00:00 Unix: 1704067200. The tool supports conversion between all these formats.
Timezones
What is UTC?
UTC (Coordinated Universal Time) is the primary time standard by which the world regulates clocks. It's the baseline for all other timezones and doesn't observe daylight saving time. Unix timestamps are always relative to UTC.
What's the difference between GMT and UTC?
GMT (Greenwich Mean Time) and UTC are often used interchangeably, but technically UTC is more precise. For practical purposes, they represent the same time. UTC is the modern standard used in computing.
How does daylight saving time work?
Daylight Saving Time (DST) shifts clocks forward in summer. The tool handles this automatically - when you select a timezone like "America/New_York", it correctly applies DST rules based on the date you're converting.