Free Online Timestamp Converter

Convert between Unix timestamp and human-readable date/time. Supports multiple timezones, ISO 8601 format, and real-time conversion.

Full Date & Time

-

ISO Format

-

Readable Format

-

Current Time (Updates every second)

Local: -
UTC: -
Unix: -

Time is based on your device's system clock. For internet-standard time, ensure your system clock is synchronized.

Key Features

language

Timezone Support

Convert timestamps across multiple timezones including local time and UTC.

swap_horiz

Bidirectional Conversion

Convert Unix timestamp to date and vice versa with ease.

schedule

Real-time Updates

See current time in different formats and timezones instantly.

description

Multiple Formats

View results in ISO format, readable format, and full datetime.

Code Examples

JavaScript / TypeScript

// Get current timestamp
const seconds = Math.floor(Date.now() / 1000);
const milliseconds = Date.now();

// Convert timestamp to date
const date = new Date(1704067200 * 1000);
console.log(date.toISOString()); // "2024-01-01T00:00:00.000Z"

// Format date in specific timezone
const options = { timeZone: 'Asia/Shanghai' };
console.log(date.toLocaleString('en-US', options));

Python

import time
from datetime import datetime, timezone

# Get current timestamp
seconds = int(time.time())
milliseconds = int(time.time() * 1000)

# Convert timestamp to date
date = datetime.fromtimestamp(1704067200, tz=timezone.utc)
print(date.strftime('%Y-%m-%d %H:%M:%S'))

# Parse date string to timestamp
date_str = "2024-01-01 08:00:00"
dt = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S")
timestamp = int(dt.timestamp())

Java

import java.time.*;
import java.time.format.DateTimeFormatter;

// Get current timestamp
long seconds = Instant.now().getEpochSecond();
long milliseconds = System.currentTimeMillis();

// Convert timestamp to date
Instant instant = Instant.ofEpochSecond(1704067200);
ZonedDateTime zdt = instant.atZone(ZoneId.of("Asia/Shanghai"));
System.out.println(zdt.format(DateTimeFormatter.ISO_ZONED_DATE_TIME));

// Parse date string to timestamp
LocalDateTime ldt = LocalDateTime.parse("2024-01-01T08:00:00");
long timestamp = ldt.atZone(ZoneId.of("Asia/Shanghai")).toEpochSecond();

Frequently Asked Questions

Getting Started
What is a Unix timestamp?expand_more
A Unix timestamp (also known as Epoch time) is a system for tracking time as a running total of seconds (or milliseconds) that have elapsed since 00:00:00 UTC on January 1, 1970. It is widely used in computing, APIs, databases, and programming because it provides a simple, timezone-independent way to represent points in time. This timestamp converter supports both seconds and milliseconds with full timezone and ISO 8601 format output.
What's the difference between seconds and milliseconds?expand_more
A Unix timestamp can be expressed in either seconds or milliseconds. The seconds format (10 digits, e.g., 1716288000) is the traditional Unix timestamp commonly used in databases and older systems. The milliseconds format (13 digits, e.g., 1716288000000) is returned by JavaScript's Date.now() and many modern APIs. Both represent the same moment in time, just at different granularities.
How accurate is the conversion?expand_more
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?expand_more
To convert a Unix timestamp to a human-readable date, simply enter the timestamp (in seconds or milliseconds) into this converter, select your desired timezone from the dropdown menu, and the tool will instantly display the full date and time in multiple formats including Full Date & Time, ISO 8601 format, and a human-readable representation.
How do I convert Date to Unix?expand_more
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?expand_more
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 timestampsexpand_more
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 dateexpand_more

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 timestampexpand_more

Date: 2024-06-15 12:30:00 UTC

Unix (seconds): 1718454600

Unix (milliseconds): 1718454600000

Programming & APIs
How do I get the current timestamp in JavaScript / Python?expand_more

JavaScript: Math.floor(Date.now() / 1000) for seconds, Date.now() for milliseconds.

Python: int(time.time()) for seconds, int(time.time() * 1000) for milliseconds.

PHP: $timestamp = time();

How do I convert timestamp to date in code?expand_more

JavaScript: new Date(timestamp * 1000).toISOString()

Python: datetime.fromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S')

Common timestamp formatsexpand_more
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 and why does timezone matter for timestamps?expand_more
UTC (Coordinated Universal Time) is the primary time standard by which the world regulates clocks and time. A Unix timestamp is always based on UTC — it represents the same moment everywhere on Earth, without any timezone offset. However, when displaying that moment as a human-readable date, you usually want to see it in your local timezone.
What's the difference between GMT and UTC?expand_more
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?expand_more
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.