Convert Unix timestamps and datetime formats
Unix Timestamp (s)
1778124631
Unix Timestamp (ms)
1778124631000
ISO 8601
2026-05-07T03:30:31.000Z
UTC
Thu, 07 May 2026 03:30:31 GMT
Local
5/7/2026, 3:30:31 AM
Date only
5/7/2026
Time only
3:30:31 AM
Relative
0 seconds ago
Free online Timestamp Converter to convert Unix timestamps to datetime and vice versa. Supports 8 output formats: Unix seconds, milliseconds, ISO 8601, UTC, Local time, Date only, Time only, and Relative time. Copy any format with one click. 'Now' button to get the current timestamp instantly. Perfect for developers working with APIs, databases, and log files.
Unix timestamps are the universal standard for storing dates in programming — the number of seconds since January 1, 1970 UTC. But a number like 1704067200 is unreadable to humans. Developers constantly need to convert timestamps from database queries and API responses to readable dates for debugging, convert datetime values to timestamps for database queries, understand relative time ('how long ago was this?'), and handle timezone differences. This tool makes all these conversions instant.
Get current timestamp: Math.floor(Date.now() / 1000) in JavaScript, time.time() in Python, time() in PHP. Add 1 day: timestamp + 86400. Add 1 hour: timestamp + 3600. Add 1 week: timestamp + 604800. Convert to Date in JS: new Date(timestamp * 1000). Convert to datetime in Python: datetime.fromtimestamp(timestamp). The Year 2038 problem: 32-bit timestamps overflow on January 19, 2038 — modern systems use 64-bit.
The tool accepts input in seconds (10 digits like 1704067200). Output includes both seconds and milliseconds. JavaScript Date.now() returns milliseconds, while most backends (PHP, Python, Unix) use seconds. Divide by 1000 to convert ms → s.
Unix Epoch is the moment 00:00:00 UTC on January 1, 1970. All Unix timestamps count the number of seconds from this point. Negative timestamps represent times before 1970.
Relative time compares the timestamp to the current moment and displays it as 'X minutes/hours/days ago'. Useful for quickly understanding how recent a timestamp is.
Unix timestamps are always UTC-based. The 'Local' format converts to your browser's timezone. ISO 8601 and UTC formats always show the same value regardless of timezone.
The maximum Unix timestamp for 32-bit systems is 2,147,483,647 (January 19, 2038) — known as the Year 2038 problem. This tool uses JavaScript's 64-bit numbers, so it supports dates far beyond 2038.
Chúng tôi không chỉ thiết kế website, mà còn giúp doanh nghiệp xây dựng thương hiệu số mạnh mẽ. Cung cấp dịch vụ thiết kế website trọn gói từ thiết kế đến tối ưu SEO. Hãy liên hệ ngay với Tấn Phát Digital để cùng tạo nên những giải pháp công nghệ đột phá, hiệu quả và bền vững cho doanh nghiệp của bạn tại Hồ Chí Minh.
Tạo file .env và .env.example cho dự án.
Tạo .gitignore cho Node.js, Python, Java.
Tạo mock JSON data cho API testing.
Format và phân tích API response.
Test REST API: GET, POST, PUT, DELETE.
Chuyển đổi Binary, Hex, Base32.
Mã hóa/giải mã Base64.
Chuyển đổi Decimal, Binary, Hex.
Tạo CSS box-shadow trực quan.
Tính quyền file Linux.
Kiểm tra WCAG accessibility.
Tạo bảng màu ngẫu nhiên.