Epoch Converter (Unix Timestamp)

Convert Unix time ⇆ human-readable date with UTC and timezone support. Detect seconds vs milliseconds automatically.

Epoch (ms) — live
ISO 8601 (UTC)
Epoch (Unix Timestamp)
Status: Idle
Results
Local Time (selected TZ)

                      
                    
UTC Time

                      
                    
ISO 8601 (UTC)

                      
                    
RFC 1123 (UTC)

                      
                    
Epoch (seconds)

                      
                    
Epoch (milliseconds)

                      
                    
Relative (from now)

                    
Date/Time
Status: Idle
Results
Epoch (seconds)

                      
                    
Epoch (milliseconds)

                      
                    
Local Time (selected TZ)

                      
                    
UTC Time

                      
                    
ISO 8601 (UTC)

                    

Epoch Cheatsheet

EventUTCEpoch (sec)Epoch (ms)
Unix Epoch Start1970-01-01 00:00:0000
Year 2038 boundary2038-01-19 03:14:0721474836472147483647000
ISO Week starts (example)2025-01-06 00:00:0017361120001736112000000

Tips & How to Use

  • 1. Paste an epoch timestamp or pick Now.
  • 2. Choose a time zone to format output (UTC is always shown as well).
  • 3. For date → epoch, enter a date/time and choose how to interpret it (UTC or selected time zone).
  • 4. Use Copy or Share Link to keep your results.
  • 5. We auto-detect seconds vs milliseconds. You can force the mode if needed.

🔌 API for Developers

Use our free REST API for Unix timestamp conversion. Supports GET/POST requests, 100 requests/hour rate limit, built-in caching and logging system.

API Features:

  • Convert Epoch → Date/Time and Date/Time → Epoch
  • Supports 400+ timezones
  • Rate limit: 100 requests/hour
  • Caching system (1 hour TTL)
  • Auto-detect seconds/milliseconds

Frequently Asked Questions (FAQ)

Unix timestamp or Epoch time is the number of seconds that have passed since January 1, 1970, 00:00:00 UTC (Unix Epoch start). It's commonly used to store time in computer systems, databases, APIs, and programs because it's a single number independent of timezones.

Example: 1685550000 = 31 May 2023, 18:00:00 UTC

  • 10 digits = seconds, e.g., 1685550000
  • 13 digits = milliseconds, e.g., 1685550000000

JavaScript typically uses milliseconds (Date.now()), while Unix and PHP use seconds. This tool auto-detects, and you can force the mode if needed.

  1. Enter Unix timestamp in the Epoch Input field
  2. Select your desired timezone (e.g., UTC, America/New_York)
  3. Click Convert
  4. Get human-readable date/time instantly (with UTC always shown)

Supports both seconds and milliseconds with auto-detection.

  1. Go to Date/Time → Epoch tab
  2. Pick your date/time (supports seconds precision)
  3. Choose to interpret as UTC or Local time (based on selected timezone)
  4. Click Convert
  5. Get Unix timestamp in both seconds (10 digits) and milliseconds (13 digits)

100% safe because all processing happens in your browser only (client-side processing). No data is sent to any server. Your data remains completely private and secure.

✓ No data collection
✓ No server uploads
✓ Works offline (after page load)

Supports 400+ timezones worldwide, including:

  • UTC, GMT - Universal time standards
  • America/New_York (EST/EDT)
  • Europe/London (GMT/BST)
  • Asia/Tokyo (JST)
  • Asia/Bangkok (UTC+7)
  • Australia/Sydney

Use the Search Time Zone field to find your timezone.

Yes! We provide a free REST API for Unix timestamp conversion. Features include:

  • ✅ Convert epoch to date/time and vice versa
  • ✅ Support for GET and POST requests
  • ✅ Rate limit: 100 requests per hour per IP
  • ✅ Built-in caching system (1 hour TTL)
  • ✅ Full timezone support (400+ timezones)
  • ✅ Auto-detection of seconds vs milliseconds
  • ✅ Complete API documentation

View the API Documentation for details, examples, and code samples.

Common Use Cases & Examples

🔍 Debug Logs & Timestamps

Convert timestamps from log files, error messages, or database records to find when issues occurred.

Log: Error at 1735689600 → 1 Jan 2025

⚙️ API Development & Testing

Test APIs using Unix timestamps for data like created_at, expires_at, last_modified fields.

{"expires_at": 1735689600}

📅 Event Scheduling

Convert event times, meetings, or deadlines to Unix timestamps for calendar apps or reminder systems.

Meeting: 15 Jan 2025 14:00 → 1736949600

🌐 Timezone Conversion

Convert times across timezones for international meetings or events with participants from different countries.

Bangkok 10:00 → NY 22:00 (prev day)

🔐 JWT Token Expiration

Check JWT token expiration dates (exp claim) which use Unix timestamps.

{"exp": 1735689600, "iat": 1735603200}

💾 Database Queries

Create WHERE conditions for database queries that store time as Unix timestamps.

WHERE created_at > 1735689600

📖 Quick Reference Guide

Common Unix Timestamp Formats

Format Example Used in
Seconds (10 digits) 1735689600 Unix, PHP, Python
Milliseconds (13 digits) 1735689600000 JavaScript, Java
Microseconds (16 digits) 1735689600000000 Python (time.time())

Important Unix Epoch Dates

Event Date (UTC) Timestamp
Unix Epoch Start 1970-01-01 0
Year 2000 (Y2K) 2000-01-01 946684800
Year 2038 Problem 2038-01-19 2147483647
2025 Start 2025-01-01 1735689600

Code Examples in Various Languages

JavaScript
// Get current timestamp (ms)
Date.now() // 1735689600000

// Convert to seconds
Math.floor(Date.now() / 1000)

// From timestamp
new Date(1735689600000)
PHP
// Get current timestamp (sec)
time(); // 1735689600

// From timestamp
date('Y-m-d H:i:s', 1735689600);

// To timestamp
strtotime('2025-01-01');
Python
import time, datetime

# Get current timestamp
time.time() # 1735689600.0

# From timestamp
datetime.fromtimestamp(1735689600)
MySQL
-- Get current timestamp
SELECT UNIX_TIMESTAMP();

-- From timestamp
SELECT FROM_UNIXTIME(1735689600);

-- WHERE query
WHERE created > 1735689600

สินค้าแนะนำ

อัปเดตล่าสุด 27 Aug 2025, 23:28