Timestamp Converter
Date & TimeConvert Unix timestamps to human-readable dates and back. Supports seconds, milliseconds, ISO 8601, UTC strings, and relative expressions. Full timezone support.
Discussion
Join the discussion
Sign in to share your thoughts and engage with the community.
About this tool
What is the Timestamp Converter?
The Timestamp Converter translates between Unix timestamps and human-readable dates in both directions. Paste in a Unix timestamp, an ISO 8601 date, a UTC string, or a relative expression like "3 hours ago" — the tool detects the format automatically and outputs every equivalent representation at once.
A live clock at the top of the tool shows the current Unix time in seconds and milliseconds, updating every second.
What is a Unix Timestamp?
A Unix timestamp represents the number of seconds (or milliseconds) elapsed since the Unix epoch — midnight on January 1, 1970, Coordinated Universal Time (UTC). It is the most widely used format for storing and transmitting time in software: databases, APIs, log files, JWT tokens, HTTP headers, and operating system calls all rely on it.
Because a Unix timestamp is a single integer with no timezone attached, it is unambiguous anywhere in the world. Two systems in different timezones that record the same event will produce the same Unix timestamp.
Supported Input Formats
Unix seconds — a 9 or 10 digit integer such as 1718000000. This is the standard output of most Unix system calls and server-side languages.
Unix milliseconds — a 13 digit integer such as 1718000000000. JavaScript's Date.now() and many web APIs return milliseconds. The tool distinguishes milliseconds from seconds by digit count.
ISO 8601 — the international standard for date and time strings, for example 2024-06-10T12:00:00Z. The T separates the date and time portions; the trailing Z indicates UTC. Offsets like +05:30 are also supported.
UTC string — a human-readable date string such as Mon, 10 Jun 2024 12:00:00 GMT. This format is used in HTTP headers and email timestamps.
Relative expressions — natural language offsets like 2 hours ago, 30 minutes ago, or 3 days from now. Supported units are seconds, minutes, hours, days, weeks, months, and years.
Timezone Support
The timezone picker lists every IANA timezone — over 400 entries covering every region worldwide. Selecting a timezone updates the local time output row in real time without affecting any other output. Unix timestamps are always UTC-based, so the timezone selection has no effect on the Unix seconds, Unix milliseconds, ISO 8601, UTC string, or relative outputs.
Your browser's local timezone is selected by default when the tool loads.
Common Use Cases
Debugging API responses — REST APIs frequently return Unix timestamps in JSON. Paste the value directly into the input to read the human-readable equivalent without writing any code.
Reading log files — server and application logs often store timestamps as Unix seconds or milliseconds. Converting them reveals the exact event time in your local timezone.
Checking JWT expiry — JSON Web Tokens include iat (issued at) and exp (expires) claims as Unix timestamps. Paste either value to see when a token was issued or when it expires.
Cross-timezone scheduling — enter a UTC time and select a destination timezone to confirm the equivalent local time before scheduling a meeting or deployment.
Generating timestamps for testing — use the live clock or relative expressions to quickly generate timestamps for test data without manually calculating epoch offsets.
Privacy
All conversions happen entirely in your browser. No data is sent to any server.
How to Use
- 1
Enter a timestamp or date
Type or paste any timestamp into the input field. The tool auto-detects the format — Unix seconds, Unix milliseconds, ISO 8601, UTC string, or a relative expression like "2 hours ago".
- 2
Select your timezone
Use the timezone picker to select any IANA timezone. The local time output updates immediately to reflect your selection.
- 3
Read the converted outputs
All formats are shown simultaneously: Unix seconds, Unix milliseconds, ISO 8601, UTC string, relative time, and local time in your selected timezone.
- 4
Copy any value
Click the copy icon next to any output row to copy that value to your clipboard instantly.
- 5
Use the live clock
The live clock at the top shows the current Unix timestamp in seconds and milliseconds, updating every second. Click "Use now" to convert the current time.
Frequently Asked Questions
What is a Unix timestamp?↓
A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since January 1, 1970 at 00:00:00 UTC, also known as the Unix epoch. It is a widely used standard for representing points in time in software systems.
What is the difference between Unix seconds and Unix milliseconds?↓
Unix seconds is a 9 or 10 digit number representing elapsed seconds since the epoch. Unix milliseconds is a 13 digit number representing elapsed milliseconds — it is 1000 times larger and provides finer precision. JavaScript's Date.now() returns milliseconds; most Unix system calls return seconds.
How does auto-detection work?↓
The tool inspects your input and applies a set of rules: 13 digits are treated as Unix milliseconds, 9–10 digits as Unix seconds, values matching the YYYY-MM-DD pattern as ISO 8601, values parseable by the browser as UTC strings, and phrases containing "ago" or "from now" as relative expressions.
What relative expressions are supported?↓
You can enter expressions like "2 hours ago", "30 minutes ago", "1 day from now", or "3 weeks ago". Supported units are seconds, minutes, hours, days, weeks, months, and years.
Does the timezone affect the Unix timestamp output?↓
No. Unix timestamps are always UTC-based and timezone-independent. The timezone setting only affects the "Local" output row, which shows the equivalent wall-clock time in your selected timezone.