Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and back. View UTC, ISO 8601, RFC 2822, and relative time instantly.

Current Unix Timestamp
1781048743

Auto-detects seconds (< 10 digits) vs milliseconds (≥ 13 digits)

Select a local date and time to convert to Unix timestamp

schedule

Enter a timestamp or pick a date, then click Convert to see results.

info

About Timestamp Converter

A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC. It is the de-facto time representation in programming, databases, APIs, and server logs because it is timezone-independent, fits in a single integer, and sorts correctly without parsing. The downside is that a raw number like 1700000000 carries no human meaning until it is decoded.

This tool converts in both directions: paste a Unix timestamp and get the equivalent date in UTC, your local timezone, ISO 8601, and RFC 2822 all at once; or pick a calendar date and get back the corresponding Unix value in both seconds and milliseconds. It also surfaces surrounding context — relative time ("3 days ago"), the day of the week, the ISO week number, and the day of the year — so you can answer questions like "did this event fall on a weekend?" without extra arithmetic. Quick buttons for Now, Start of Day, and Start of Year let you generate reference timestamps in one click.

Every conversion runs entirely in your browser using the native JavaScript Date API. No value you enter is sent to a server, stored, or logged, making it safe to paste internal API payloads, JWT claims, database records, or log excerpts that you would not want leaving your machine. There are no accounts, no rate limits, and no cost.

star

Key Features

check_circle

Bidirectional conversion

Switch between "Timestamp to Date" and "Date to Timestamp" modes. Both directions produce the same rich output panel, so you can cross-check values in either direction.

check_circle

Seconds and milliseconds auto-detected

The tool inspects the digit count of your input (fewer than 13 digits = seconds; 13 or more = milliseconds) and scales automatically. No manual unit selection required.

check_circle

Five output formats at once

A single conversion yields UTC, local time, ISO 8601, RFC 2822, Unix seconds, and Unix milliseconds side by side — copy whichever format your code or spec requires.

check_circle

Relative time and calendar metadata

Results include a human-readable relative label ("in 4 hours", "2 months ago"), the full day of the week, the ISO week number, and the day of the year for quick sanity checks.

check_circle

Live current timestamp display

A ticking banner shows the current Unix timestamp updating every second, so you can grab the present moment without typing anything.

check_circle

100% client-side and private

All arithmetic uses the built-in JavaScript Date API in your browser. Your timestamps never leave your device, making it safe for JWT payloads, access tokens, and internal log data.

help

How to Use

01

Choose a Mode

Select "Timestamp to Date" to convert a Unix timestamp, or "Date to Timestamp" to convert a calendar date. Use the quick buttons for common values like Now or Start of Day.

02

Enter Your Value

Type a Unix timestamp (seconds or milliseconds are auto-detected) or pick a date and time using the date picker, then click Convert.

03

Copy Results

View the conversion in multiple formats — UTC, local time, ISO 8601, and more. Hover over any result row and click the copy icon to grab the value you need.

code_blocks

Example

Pasting the Unix timestamp 1700000000 (seconds) produces the date in every standard format along with relative time and calendar details.

Unix timestamp (seconds)
1700000000
Conversion results
UTC          Wed, 15 Nov 2023 00:00:00 GMT
Local Time   11/14/2023, 7:00:00 PM (UTC-5)
ISO 8601     2023-11-15T00:00:00.000Z
RFC 2822     Wed, 15 Nov 2023 00:00:00 GMT
Unix (sec)   1700000000
Unix (ms)    1700000000000
Relative     about 2 years ago
Day of Week  Wednesday
Week Number  46
Day of Year  319
lightbulb

Common Use Cases

  • arrow_circle_right

    Decoding timestamps in API responses and JWTs

    REST APIs and JSON Web Tokens routinely use Unix timestamps for fields like exp, iat, and created_at. Paste the raw number to instantly read the expiry or creation date without writing a one-off script.

  • arrow_circle_right

    Debugging server logs and database records

    Application logs and SQL tables store events as integers for performance. When you need to confirm whether an event occurred before or after a deployment, convert the log timestamp to a readable date in seconds.

  • arrow_circle_right

    Setting future expiry times for tokens and caches

    Generating an expiry 30 days from now requires knowing today's Unix timestamp. Use the "Now" quick button, note the seconds value, add 2592000, and paste the result back to verify the target date.

  • arrow_circle_right

    Verifying event timing across timezones

    A timestamp is always UTC-anchored, so comparing events from servers in different regions is unambiguous. Convert both timestamps here and read the UTC row to confirm order without mental timezone arithmetic.

  • arrow_circle_right

    Generating reference timestamps for test fixtures

    Hardcoded dates in unit tests and seed data must match business rules. Pick the exact date in the date picker, convert to a Unix timestamp, and paste the integer into your fixture file.

quiz

Frequently Asked Questions

What is a Timestamp Converter? expand_more
A Timestamp Converter is a tool that translates between Unix timestamps (the number of seconds since January 1, 1970 UTC) and human-readable date formats. It helps developers, system administrators, and analysts quickly interpret or generate timestamps used in code, APIs, databases, and log files.
Does it handle millisecond timestamps? expand_more
Yes. The tool automatically detects whether your input is in seconds (typically 10 digits) or milliseconds (13 digits) and converts accordingly. You do not need to manually specify the precision.
Is my data processed securely? expand_more
Absolutely. All conversions happen entirely in your browser using the native JavaScript Date API. No data is sent to any server, so your timestamps and dates remain completely private.
What output formats are supported? expand_more
The converter displays results in UTC, local time, ISO 8601, and RFC 2822 formats. It also shows the Unix timestamp in both seconds and milliseconds, relative time (e.g., "3 days ago"), day of the week, ISO week number, and day of the year.
How is this different from a Cron Parser? expand_more
A cron parser takes a cron expression such as "0 9 * * 1-5" and tells you when the next scheduled runs will occur. This timestamp converter works with absolute moments — a specific number that represents one exact point in time. Use the cron parser to understand a schedule; use this tool to decode or generate the actual Unix integer that marks a specific event.
What is the Unix epoch and why does it start in 1970? expand_more
The Unix epoch (January 1, 1970 00:00:00 UTC) was chosen by early Unix engineers as a convenient origin point. All Unix timestamps are a count of seconds forward (positive) or backward (negative) from that origin. Negative timestamps represent dates before 1970, and this tool handles them correctly.
Can I convert a negative timestamp (dates before 1970)? expand_more
Yes. Negative Unix timestamps represent dates before January 1, 1970. Enter a negative number in the timestamp field and the tool will produce the correct date going back in history.
Why do I sometimes see 13-digit timestamps instead of 10-digit ones? expand_more
A 10-digit timestamp counts seconds since the epoch; a 13-digit timestamp counts milliseconds. JavaScript's Date.now() returns milliseconds, so many front-end systems produce 13-digit values. This tool detects the length and scales automatically so you do not need to divide by 1000 manually.