Skip to main content

Unix Timestamp Converter

Convert Unix epoch timestamps in seconds or milliseconds to human-readable dates, and convert dates back to timestamps. Free and runs in your browser.

Current epoch timestamp

  • Seconds1794324204
  • Milliseconds1794324204976

Timestamp → Date

Timestamp

Stays in your browser

Date → Timestamp

Date

Stays in your browser

Convert a log

Paste log text. Every 10-digit (seconds) and 13-digit (milliseconds) timestamp and every ISO-8601 date gets its readable time.

Log text

Stays in your browser

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Free Online Unix Timestamp Converter

Convert a Unix epoch timestamp to a readable UTC/local date, or convert a date back into a timestamp — plus a live ticker showing the current epoch time, updated every second. It helps backend developers reconcile API timestamps, database values, and logs when seconds and milliseconds are easy to confuse.

How to use this converter

To convert a timestamp into a date, paste it into the first input, choose whether it's in seconds or milliseconds, and click Convert — you'll get both the UTC (ISO 8601) and your local time representation. To go the other way, type or paste a date into the second input (ISO format or most common date strings work) and click Convert to get its Unix timestamp in seconds.

Seconds vs. milliseconds

Different systems use different units: Unix system calls and most databases use seconds, while JavaScript's Date.now() and many web APIs use milliseconds. A quick way to tell them apart: a 10-digit number is almost always seconds (covering dates up to the year 2286), while a 13-digit number is almost always milliseconds.

Convert a whole log

Paste log text into Convert a log and every 10-digit and 13-digit timestamp, and every ISO date, gets a readable time in the zone you choose. The default adds the date after the number so nothing is lost; a 10-digit number that is really a phone number then only gets an extra note. Turn on the “after = or :” option to match only numbers that look like timestamp fields.

Common use cases

  • Decoding a timestamp field from a database row or API response into a readable date
  • Converting a specific date into a timestamp to use in a query or test fixture
  • Quickly grabbing the current epoch time for a script or manual test

Worked example

The timestamp 1735689600 (seconds) converts to 2025-01-01T00:00:00.000Z in UTC. Converting a date back the other way, 2026-01-15T10:30:00Z produces the timestamp 1768473000.

Common mistakes and edge cases

  • A date-only string like 2026-01-15 is parsed as UTC midnight, but a date+time string without a trailing Z or offset (like 2026-01-15T10:30:00) is parsed as your browser's local time, not UTC — in testing, this is standard JavaScript Date behavior, not specific to this tool. Add a trailing Z if you mean UTC.
  • Dates such as 15/01/2026 and 15-01-2026 follow the day/month order you choose. When both numbers are 12 or less (05/06/2026) the note under the result says which reading was used, so check it matches what you meant.
  • A 10-digit seconds value covers dates up to the year 2286; anything larger than that (or a value far enough outside the representable range) reports "out of range" rather than a wraparound or garbage date.

Frequently asked questions

What is a Unix timestamp?
A Unix timestamp (or epoch time) is the number of seconds — or, in JavaScript and many APIs, milliseconds — that have elapsed since midnight UTC on January 1, 1970 (the "Unix epoch"). It's a simple, timezone-independent way to represent a specific point in time.
How do I know if my timestamp is in seconds or milliseconds?
A 10-digit number (like 1735689600) is almost always seconds; a 13-digit number (like 1735689600000) is almost always milliseconds. This tool lets you pick which unit to interpret the input as.
What happens with dates before 1970?
Unix timestamps can be negative to represent dates before the epoch — this tool handles negative values the same way as positive ones, converting them to the corresponding date.
Is my data uploaded anywhere?
No — all conversion happens locally using your browser's built-in Date object. Nothing is sent to a server.
Why did my date-to-timestamp conversion come out an hour or more off from what I expected?
A date-only string like 2026-01-15 is parsed as UTC midnight, but a date+time string without a trailing Z or offset (like 2026-01-15T10:30:00) is parsed as your browser’s local time, not UTC — this is a real, well-known JavaScript Date behavior, not a bug in this tool. Add a trailing Z (2026-01-15T10:30:00Z) if you specifically mean UTC.
Why is my Unix timestamp off by 1000?
Unix time counts seconds since 1 January 1970, and many languages and APIs use seconds. JavaScript uses milliseconds, so the same moment has three more digits. A 10-digit value is seconds and a 13-digit value is milliseconds: convert at the right place and the date will be correct.

Related tools

More Code & Conversion

View all Code & Conversion tools →