Timestamp Converter
Convert Unix timestamps to UTC, local, and ISO 8601 dates—and back. Seconds, milliseconds, live clock, 100% local.
Unix Time & Timestamps Course
Learn Unix epoch time, seconds vs milliseconds, UTC, timezones, ISO 8601, and how to debug timestamps in logs and APIs.
About this tool
DevCove Timestamp Converter helps developers decode log lines, API payloads, and database fields that store time as Unix epoch values. Paste a 10-digit second or 13-digit millisecond timestamp and instantly see UTC, local, and ISO representations—or enter a date to get the epoch values you need for code and queries.
How to use this tool
Convert between Unix epoch values and readable dates in a few steps:
- Open Timestamp → Date and paste a Unix timestamp from logs, JSON, or a database export.
- Check seconds vs milliseconds—the tool auto-detects 10- and 13-digit values, or pick the unit manually.
- Read UTC, local, and ISO 8601 in the result cards; click Copy on any row you need.
- Switch to Date → Timestamp, pick a local datetime or paste ISO 8601, then copy Unix seconds or milliseconds.
- Use the timezone picker to inspect the same timestamp in another region—for example UTC vs Asia/Shanghai.
- Open Batch to convert many timestamps or ISO dates at once—errors on one line do not block the rest.
- Copy share link to save the current value in the URL (?ts= or ?iso=) for teammates or documentation.
- Click Use now to fill the current epoch time when debugging live requests.
Features
Built for everyday debugging and API work:
- Bidirectional conversion: Unix timestamp ↔ readable date and time.
- Auto-detect 10-digit seconds and 13-digit milliseconds, with manual unit override.
- Live clock showing current Unix seconds and milliseconds.
- Result cards for Unix seconds, Unix milliseconds, ISO 8601 (UTC), UTC readable, and local time.
- IANA timezone picker with search—view the same instant in Tokyo, New York, UTC, or any zone.
- Additional formats: RFC 2822, date-only and time-only in the selected timezone.
- Relative time from now (e.g. in 2 days, 3 hours ago) that updates with the live clock.
- Batch conversion table for many timestamps or ISO date lines at once.
- Shareable URLs with ?ts=, ?iso=, unit, and timezone query parameters.
- JavaScript, Python, and SQL code snippets generated from the current value.
- Per-field copy buttons for quick use in code, SQL, or log queries.
- Date mode supports datetime-local picker and ISO 8601 paste.
- 100% client-side—your timestamps never leave the browser.
- Bilingual interface with SEO-friendly documentation on this page.
FAQ
What is a Unix timestamp?
A Unix timestamp counts seconds (or milliseconds) since 1970-01-01 00:00:00 UTC, the Unix epoch. It is widely used in logs, JWTs, APIs, and databases because it is timezone-neutral at storage time.
Should I use seconds or milliseconds?
Unix seconds are common in Linux logs, Python time.time(), and many APIs. JavaScript Date.now() and Java APIs often use milliseconds. This tool accepts both: 10 digits are treated as seconds, 13 as milliseconds, unless you override the unit.
What's the difference between UTC and local time?
UTC is the global reference without daylight saving offsets. Local time uses your browser's timezone and reflects what you would see on a local clock. Always confirm which one your API or log format expects.
How do I convert a date string to a Unix timestamp?
Switch to Date → Timestamp, use the datetime picker for local wall time, or paste an ISO 8601 string such as 2024-01-15T08:30:00Z. The Unix second and millisecond values appear in the result cards.
Why does my timestamp fail to convert?
Common causes: non-numeric characters, decimal fractions, wrong unit (seconds vs milliseconds), or values outside the JavaScript Date safe range. Select the correct unit or shorten/lengthen the digit count.
Is my data sent to a server?
No. All conversion runs locally in your browser. DevCove does not upload the timestamps or dates you enter.