data

Timestamp Converter

Convert Unix timestamps to UTC, local, and ISO 8601 dates—and back. Seconds, milliseconds, live clock, 100% local.

Current timeSeconds: 1779632363Milliseconds: 1779632363122

Unix seconds

1700000000

Unix milliseconds

1700000000000

ISO 8601 (UTC)

2023-11-14T22:13:20.000Z

UTC

Nov 14, 2023, 22:13:20

Local time

Nov 14, 2023, 22:13:20

Selected timezone (UTC)

Nov 14, 2023, 22:13:20

RFC 2822 (UTC)

Tue, 14 Nov 2023 22:13:20 GMT

Date only (UTC)

Nov 14, 2023

Time only (UTC)

22:13:20

Relative to now

today

Browser timezone (UTC)

UTC

Code snippets

JavaScript

// From Unix seconds
new Date(1700000000 * 1000).toISOString(); // "2023-11-14T22:13:20.000Z"

// From milliseconds
new Date(1700000000000).toISOString(); // "2023-11-14T22:13:20.000Z"

Python

from datetime import datetime, timezone

# UTC from Unix seconds
datetime.fromtimestamp(1700000000, tz=timezone.utc).isoformat()
# -> "2023-11-14T22:13:20.000Z"

SQL (PostgreSQL)

-- From Unix seconds
SELECT TO_TIMESTAMP(1700000000) AT TIME ZONE 'UTC';

-- From Unix milliseconds
SELECT TO_TIMESTAMP(1700000000000 / 1000.0) AT TIME ZONE 'UTC';

Unix Time & Timestamps Course

Learn Unix epoch time, seconds vs milliseconds, UTC, timezones, ISO 8601, and how to debug timestamps in logs and APIs.

Course home

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:

  1. Open Timestamp → Date and paste a Unix timestamp from logs, JSON, or a database export.
  2. Check seconds vs milliseconds—the tool auto-detects 10- and 13-digit values, or pick the unit manually.
  3. Read UTC, local, and ISO 8601 in the result cards; click Copy on any row you need.
  4. Switch to Date → Timestamp, pick a local datetime or paste ISO 8601, then copy Unix seconds or milliseconds.
  5. Use the timezone picker to inspect the same timestamp in another region—for example UTC vs Asia/Shanghai.
  6. Open Batch to convert many timestamps or ISO dates at once—errors on one line do not block the rest.
  7. Copy share link to save the current value in the URL (?ts= or ?iso=) for teammates or documentation.
  8. 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.