← Takora

Unix Timestamp Converter

Convert Unix Timestamps to Human-Readable Dates Instantly

Log files, API responses, and database rows all store time as an integer, and every developer eventually faces a bare number like 1722758400 with no idea what date it represents. A timestamp converter bridges that gap: it turns Unix epoch seconds into readable UTC and local dates, converts dates back into timestamps, and shows the time in ISO 8601 format plus relative terms like "2 hours ago." You need it whenever you debug logs, inspect database records, build API integrations, or write tests that depend on a specific moment in time.

Understanding Epoch Seconds vs. Milliseconds

A Unix timestamp counts seconds since January 1, 1970 UTC (the epoch). Many systems, including JavaScript's Date.now(), return milliseconds instead — a number about one thousand times larger. Mixing the two is one of the most common timestamp bugs in software. Databases such as PostgreSQL commonly store time as bigint epoch values, and cloud log services export every event with an integer timestamp, so knowing which unit you are looking at matters before you trust any conversion.

SourceUnitExample for 2024-08-04 00:00:00 UTC
Unix / Linux date +%sSeconds1722758400
JavaScript Date.now()Milliseconds1722758400000
Python time.time()Seconds1722758400.123456

When a value looks roughly one thousand times too large, it is almost certainly milliseconds — divide by 1000 before converting.

How to Use the Timestamp Converter

  1. Paste a Unix timestamp such as 1722758400 into the input field.
  2. Select the correct unit — seconds or milliseconds — if the tool asks, or let it auto-detect.
  3. Read the UTC date, your local timezone date, and the ISO 8601 representation.
  4. To go the other way, enter a date like 2024-08-04 00:00:00 and copy the resulting timestamp.
  5. Use the relative time display, such as "3 days ago," to sanity-check recent log entries at a glance.

Real Example: Input and Output

Debugging a failed login at 6:45 p.m. local time is faster when the raw log value converts to a readable moment.

InputOutput
17227899002024-08-04 18:45:00 UTC
17227899000002024-08-04 18:45:00 UTC (milliseconds)
2024-08-04 18:45:001722789900 (epoch seconds)

Tips for Best Results

When to Use This Tool

Frequently Asked Questions

What is a Unix timestamp?

It is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC, ignoring leap seconds.

Why is my JavaScript timestamp so large?

JavaScript's Date.now() returns milliseconds, not seconds. Divide the value by 1000 to get standard epoch seconds.

What is the current Unix timestamp?

The current epoch seconds value, which increases by one every second — the tool shows it live alongside the converted date.

Does a timestamp depend on timezone?

No. An epoch value represents the same instant everywhere; timezones only change how that instant is displayed.

How do I convert a timestamp to a date in Python?

Use datetime.datetime.fromtimestamp(1722758400, tz=datetime.timezone.utc) for a UTC datetime object.

What does ISO 8601 format look like?

It looks like 2024-08-04T18:45:00Z — a date, the letter T, a time, and a Z for UTC or an offset such as +02:00.

Can a timestamp be negative?

Yes — values before 1970 are negative. In practice a negative value in your data usually signals a parsing bug or missing field.

How do I get the current epoch in Linux?

Run date +%s in a terminal. The output is the current time in seconds since the epoch.