Unix Timestamp Converter

    Enter seconds since Unix epoch (UTC). Millisecond timestamps are detected automatically.

    Enter a numeric Unix timestamp to convert.
    Advertisement
    Advertisement

    Related Guides & Tutorials

    // developers also read

    Terminal Equivalent

    Convert Unix timestamps directly in your terminal without any tools.

    bash
    # Convert Unix timestamp to human-readable date (Linux/Mac)
    date -d @1733569200
    # Output: Sat Dec  7 04:00:00 UTC 2024
    
    # Mac/BSD syntax
    date -r 1733569200
    
    # Get current Unix timestamp
    date +%s
    
    # Convert date to timestamp
    date -d "2024-12-07 04:00:00 UTC" +%s

    Language Quick Reference

    python
    # Python
    import datetime
    ts = 1733569200
    dt = datetime.datetime.fromtimestamp(ts, tz=datetime.timezone.utc)
    print(dt.isoformat())  # 2024-12-07T04:00:00+00:00
    
    # Get current timestamp
    import time
    print(int(time.time()))

    How It Works

    Unix timestamps count seconds elapsed since the Unix epoch — January 1, 1970, 00:00:00 UTC. This date was chosen because it was a convenient round number when Unix was being developed at Bell Labs. Negative timestamps represent dates before 1970. The maximum 32-bit timestamp is 2,147,483,647 (January 19, 2038) — the Y2038 problem. 64-bit systems extend this to year 292 billion.