⏰ Timestamp to Date Converter

Convert Unix timestamps to human-readable dates and vice versa

Timestamp → Date
Date → Timestamp

Convert Timestamp to Date

📌 Try these examples:
TIMESTAMP
📅 UTC DATE & TIME
🌍 LOCAL DATE & TIME
📋 ISO 8601 FORMAT
⏱️ SECONDS
⏱️ MILLISECONDS

Convert Date to Timestamp

SELECTED DATE
⏱️ UNIX TIMESTAMP (SECONDS)
⏱️ UNIX TIMESTAMP (MILLISECONDS)

What is a Unix Timestamp?

A Unix timestamp (also known as Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. This date is called the Unix epoch.

Timestamp Formats

Seconds (10 digits): 1609459200 = January 1, 2021, 00:00:00 UTC

Milliseconds (13 digits): 1609459200000 = January 1, 2021, 00:00:00.000 UTC

Our tool automatically detects which format you're using based on the number of digits.

Convert Timestamps in Code

JavaScript
// JavaScript
// Timestamp to Date
const timestamp = 1609459200;
const date = new Date(timestamp * 1000); // Convert to milliseconds
console.log(date.toUTCString()); // Fri, 01 Jan 2021 00:00:00 GMT

// Date to Timestamp
const now = new Date();
const timestampSeconds = Math.floor(now.getTime() / 1000);
const timestampMilliseconds = now.getTime();
console.log('Seconds:', timestampSeconds);
console.log('Milliseconds:', timestampMilliseconds);
Python
# Python
from datetime import datetime

# Timestamp to Date
timestamp = 1609459200
date = datetime.fromtimestamp(timestamp)
print(date.isoformat())  # 2021-01-01T00:00:00

# Date to Timestamp
now = datetime.now()
timestamp_seconds = int(now.timestamp())
timestamp_milliseconds = int(now.timestamp() * 1000)
print(f'Seconds: {timestamp_seconds}')
print(f'Milliseconds: {timestamp_milliseconds}')

Common Use Cases

🔗 Related Snowflake ID Tools

🐦 Twitter Snowflake Decoder 💬 Discord Snowflake Decoder 📸 Instagram Snowflake Decoder

📚 Learn More About Snowflake IDs

How to Decode Tutorial Real ID Examples Snowflake Calculator ID to Timestamp