timestamper.online

Unix Timestamp to Datetime Converter

Convert Unix epoch (seconds) to human-readable date and time in multiple formats including ISO 8601, RFC 3339, UTC, and your local timezone.

Convert Unix Timestamp to Datetime
Paste a Unix timestamp to see the formatted datetime results
Unix Timestamp to Date
Convert Unix timestamp to multiple date formats
Date to Unix Timestamp
Convert date to multiple Unix timestamp formats
Common Examples
Quick reference for frequently used timestamps
  • Now (seconds): 1757317699
  • 1 hour ago: 1757314099
  • 1 day ago: 1757231299
  • Unix epoch start: 0
Tips & Pitfalls
Avoid common mistakes when converting
  • Ensure your input is in seconds (10 digits) unless noted otherwise
  • Be aware of daylight saving time impacts on local display
  • Prefer UTC for storage, local time for display
  • Use ISO 8601 for API interoperability

Code examples: Convert Unix timestamp to datetime

JavaScript
const ts = 1640995200 // seconds
const date = new Date(ts * 1000)
console.log(date.toISOString()) // 2022-01-01T00:00:00.000Z
Python
import datetime

ts = 1640995200  # seconds
print(datetime.datetime.utcfromtimestamp(ts).isoformat() + 'Z')
Java
long ts = 1640995200L; // seconds
Instant instant = Instant.ofEpochSecond(ts);
System.out.println(instant.toString()); // 2022-01-01T00:00:00Z
Go
ts := int64(1640995200) // seconds
t := time.Unix(ts, 0).UTC()
fmt.Println(t.Format(time.RFC3339))