← Back to Home

Timestamp ↔ Human Time Converter

Convert Unix timestamps to human-readable time and back. Useful for developers working with time formats.

Result:

Common Time Formats

Format Example Description
Unix Timestamp 1700000000 Number of seconds (or milliseconds) since January 1, 1970 UTC.
ISO 8601 2025-08-11T14:30:00Z International standard for date and time, easy to parse across languages.
RFC 2822 Mon, 11 Aug 2025 14:30:00 +0000 Common format in email headers and older internet protocols.

JavaScript Examples:


// Unix Timestamp → ISO 8601
new Date(1700000000 * 1000).toISOString(); // "2023-11-14T06:13:20.000Z"

// ISO 8601 → Unix Timestamp
Math.floor(new Date("2025-08-11T14:30:00Z").getTime() / 1000); // 1754922600

// RFC 2822 → Unix Timestamp
Math.floor(new Date("Mon, 11 Aug 2025 14:30:00 +0000").getTime() / 1000); // 1754922600
    

Python Examples:


from datetime import datetime


# Unix Timestamp → ISO 8601
datetime.utcfromtimestamp(1700000000).isoformat() + "Z"
# '2023-11-14T06:13:20Z'

# ISO 8601 → Unix Timestamp
int(datetime.fromisoformat("2025-08-11T14:30:00").timestamp())
# 1754922600

# RFC 2822 → Unix Timestamp
from email.utils import parsedate_to_datetime

int(parsedate_to_datetime("Mon, 11 Aug 2025 14:30:00 +0000").timestamp())
# 1754922600
    

When to Use Each Format