Skip to main content
NeatUtility

Unix Timestamp Converter

Time & Date100% Client-Side
Ready
TEXT
0 lines0 chars
0 B / 9.8 KB
About this tool, examples & FAQ

Convert a Unix timestamp or date string into epoch seconds, epoch milliseconds, ISO 8601, a UTC string, a target-timezone rendering, and a UTC calendar breakdown — with the auto-detected unit reported.

Key facts

Verified capabilities and limits of this utility
Accepted inputUnix timestamps in seconds or milliseconds, or date strings in ISO 8601 and other formats the platform date parser accepts
Unit detectionShort numeric inputs read as seconds and long ones as milliseconds; the chosen unit is reported as detectedUnit
OutputsEpoch seconds, epoch milliseconds, ISO 8601, UTC string, target-timezone rendering, and UTC calendar breakdown
Max input size10 KB
Execution deadline1 s
Processing locationBrowser-only: pasted input is not uploaded

How to use

  1. Paste a Unix timestamp or a date string into the input pane.
  2. Leave the unit on Auto, or force seconds or milliseconds explicitly.
  3. Pick a display timezone preset for the localized rendering.
  4. Click 'Run' to convert the timestamp locally in your browser.
  5. Inspect the breakdown JSON and the text summary, including the detected unit.

Examples

Unix epoch zero

Input

0

Example output

{
  "epochSeconds": 0,
  "epochMilliseconds": 0,
  "iso8601": "1970-01-01T00:00:00.000Z",
  "utcString": "Thu, 01 Jan 1970 00:00:00 GMT",
  "detectedUnit": "seconds",
  "timezone": "UTC",
  "timezoneFormatted": "Thursday, January 1, 1970 at 12:00:00 AM UTC",
  "calendarUTC": {
    "year": 1970,
    "month": 1,
    "day": 1,
    "hour": 0,
    "minute": 0,
    "second": 0,
    "millisecond": 0,
    "dayOfWeek": "Thursday",
    "dayOfYear": 1,
    "isLeapYear": false
  }
}
Unix Epoch (Seconds):      0
Unix Epoch (Milliseconds): 0
ISO 8601 (UTC):            1970-01-01T00:00:00.000Z
UTC String:                Thu, 01 Jan 1970 00:00:00 GMT
Target Timezone (UTC): Thursday, January 1, 1970 at 12:00:00 AM UTC

Convert 1700000000 seconds

Input

1700000000

Example output

{
  "epochSeconds": 1700000000,
  "epochMilliseconds": 1700000000000,
  "iso8601": "2023-11-14T22:13:20.000Z",
  "utcString": "Tue, 14 Nov 2023 22:13:20 GMT",
  "detectedUnit": "seconds",
  "timezone": "UTC",
  "timezoneFormatted": "Tuesday, November 14, 2023 at 10:13:20 PM UTC",
  "calendarUTC": {
    "year": 2023,
    "month": 11,
    "day": 14,
    "hour": 22,
    "minute": 13,
    "second": 20,
    "millisecond": 0,
    "dayOfWeek": "Tuesday",
    "dayOfYear": 318,
    "isLeapYear": false
  }
}
Unix Epoch (Seconds):      1700000000
Unix Epoch (Milliseconds): 1700000000000
ISO 8601 (UTC):            2023-11-14T22:13:20.000Z
UTC String:                Tue, 14 Nov 2023 22:13:20 GMT
Target Timezone (UTC): Tuesday, November 14, 2023 at 10:13:20 PM UTC

Edge cases

Pre-epoch dates

Negative timestamps and date strings before 1970 convert normally; the epoch is just the zero point, not the earliest supported date.

Digit-count ambiguity

Auto detection is a digit-count heuristic, not infallible: a value whose digit count falls on the wrong side of the boundary is misread, so force the unit explicitly when you know it.

UTC fields versus display zone

The calendar breakdown is always UTC regardless of the display timezone, and the utcString field carries Date.toUTCString() output; only the timezoneFormatted rendering follows the selected zone.

How it works

  1. Trims the input and classifies it as a numeric timestamp or a date string.
  2. Interprets numerics per the unit option, defaulting to the digit-count heuristic under Auto.
  3. Builds epoch, ISO, UTC-string, timezone, and UTC-calendar representations.
  4. Falls back to UTC with an INVALID_TIMEZONE warning for unrecognized timezones.

Frequently asked questions

What is the Unix epoch?

The Unix epoch is 1970-01-01T00:00:00Z: the zero point from which Unix timestamps count elapsed seconds or milliseconds. The value 0 converts to exactly that instant.

How do I tell seconds from milliseconds?

Seconds-scale values are the shorter ones (for example 1700000000) and millisecond-scale values the longer ones (for example 1700000000000); both describe the same instant, 2023-11-14T22:13:20.000Z. When in doubt, check the detectedUnit field or force the unit option explicitly.

Is the output UTC or my local time?

Epoch, ISO, UTC-string, and calendar fields are always UTC. Only the timezoneFormatted rendering follows the selected display timezone preset; unrecognized timezone names fall back to UTC with an INVALID_TIMEZONE warning.

Why is digit count only a heuristic?

Auto mode cannot know your intent: it reads short numeric inputs as seconds and long ones as milliseconds purely from digit count. A value on the wrong side of the boundary is misread, so the detected unit is reported and explicit seconds/milliseconds overrides exist.

What about the year 2038 problem?

The 2038 limit applies to systems that store epoch seconds in a signed 32-bit integer, not to every date implementation: this tool converts timestamps beyond 2038 normally. Still, confirm that downstream systems you exchange values with can represent the range you need.

References