Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back. View UTC, ISO 8601, RFC 2822, and relative time instantly.
Auto-detects seconds (< 10 digits) vs milliseconds (≥ 13 digits)
Select a local date and time to convert to Unix timestamp
Enter a timestamp or pick a date, then click Convert to see results.
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.
Key Features
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.
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.
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.
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.
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.
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.
How to Use
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.
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.
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.
Example
Pasting the Unix timestamp 1700000000 (seconds) produces the date in every standard format along with relative time and calendar details.
1700000000 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 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.