Convert Unix ↔ Date
Convert Unix timestamps to readable dates and convert dates back to Unix timestamps.
Input text
Result
Tool options
Conversion Mode
Unix → Date
Date → Unix
Timezone Options
Use Local Time
Use UTC
Append 'UTC' after the converted date (available only in UTC mode)
Convert Unix ↔ Date
Unix timestamps are everywhere once you start noticing them: in API responses, database rows, log files, access tokens, cookie expiry fields. They are also completely unreadable — 1721287227 is 2024-07-18 10:00:27 UTC, but nobody carries that arithmetic in their head. This tool converts timestamps to human-readable dates, and dates back to timestamps, in both directions.
Paste one timestamp or a whole column of them, one per line — the tool processes each line, which makes it practical for bulk log conversion, not just one-off lookups. Two modes are available: Unix-to-date for decoding timestamps, and date-to-unix for encoding dates when you need to construct an API parameter or set an expiry. Dates with explicit UTC offsets (like +08:00) are accepted in date-to-unix mode, so you can encode a time as it was expressed in another timezone without first converting it yourself.
The settings that prevent the classic mistakes: choose UTC or your local timezone for display, and toggle the UTC suffix label on or off in the output. The single most common pitfall with timestamps is unit confusion — some systems emit seconds, others milliseconds, and a millisecond timestamp read as seconds lands in January 1970. If your conversion produces a date in 1970, your input is almost certainly in milliseconds: drop the last three digits (or divide by 1000) and try again.
Conversion runs entirely in your browser as you type; nothing is sent to a server. It is also a handy tool for sanity checks — 0 converts to the epoch itself, and 2147483647 converts to January 2038, the famous 32-bit time limit, which is exactly what a quick decoder like this should tell you.
Convert Unix ↔ Date Examples
Click to try!
This example shows how Unix timestamps are converted into human-readable dates. Each timestamp represents the number of seconds that have elapsed since January 1, 1970 (UTC).
Conversion Mode
Unix → Date
Date → Unix
Timezone Options
Use Local Time
Use UTC
Append 'UTC' after the converted date (available only in UTC mode)
In this example, the UTC suffix is removed from the output. This might be useful for embedding timestamps into other formats or for cleaner display.
Conversion Mode
Unix → Date
Date → Unix
Timezone Options
Use Local Time
Use UTC
Append 'UTC' after the converted date (available only in UTC mode)
In this example, a plain human-readable timeframe is converted into a Unix timestamp. The UTC offset is treated as +00:00.
Conversion Mode
Unix → Date
Date → Unix
Timezone Options
Use Local Time
Use UTC
In this example, the UTC offset is provided after stating the timeframe with a space.
Conversion Mode
Unix → Date
Date → Unix
Timezone Options
Use Local Time
Use UTC
All Time Tools
You May Also Like
We use cookies for analytics and advertising. You choose what's enabled. Essential cookies are always on. Privacy Policy