Timestamp Converter
Online Unix Timestamp Converter. Supports second/millisecond precision, 15 global timezones, time offset calculator, time difference calculator, batch conversion, and world time table. All processing in your browser — data never leaves your device.
📥 Timestamp to Date
📤 Date to Timestamp
⏱ Time Offset Calculator
⏱ Time Difference Calculator
📊 Batch Timestamp Conversion
🌍 World Time Table (Live Update)
| City | Timezone | Current Time | Offset from Beijing |
|---|
💻 Code Examples
// JavaScript Timestamp Operations
// Get current timestamp (milliseconds)
const timestamp = Date.now();
// Get current timestamp (seconds)
const timestampSec = Math.floor(Date.now() / 1000);
// Timestamp to date
const date = new Date(timestamp);
console.log(date.toLocaleString('en-US'));
// Date to timestamp
const ts = date.getTime();
// Format output
console.log(date.toISOString()); // ISO 8601
console.log(date.toUTCString()); // UTC String
What is Unix Timestamp?
Unix Timestamp is the number of seconds elapsed since January 1, 1970 00:00:00 UTC (Coordinated Universal Time), excluding leap seconds. It is the most common time representation in computer systems, widely used in programming, database storage, and logging.
Timestamp Precision
- Second-level timestamp (10 digits) — Unix standard format, used by PHP, Python
- Millisecond-level timestamp (13 digits) — Used by JavaScript, Java
- Microsecond-level timestamp (16 digits) — High precision scenarios like financial trading
Features
- Live Timestamp — Real-time display of current second/millisecond timestamps
- Bidirectional Conversion — Timestamp to date and date to timestamp
- Multi-timezone Support — 15 major timezones with automatic DST handling
- Time Calculator — Calculate time offsets and time differences
- Batch Conversion — Convert multiple timestamps simultaneously
- World Time Table — Real-time display of 12 cities
- Multiple Formats — ISO 8601, RFC 2822, Relative Time, etc.
- Quick Buttons — One-click access to common timestamps
Common Use Cases
- Development & Debugging: Convert API timestamps to readable dates
- Log Analysis: Convert log timestamps to readable format
- Data Processing: Batch convert time data
- Cross-timezone Collaboration: Convert time between different timezones
- Database Operations: Convert MySQL, PostgreSQL timestamps
Tip: Click on the live timestamp value to copy it to your clipboard.