13-Digit Millisecond Timestamp to ISO-8601 & RFC-3339
A 13-digit Unix timestamp represents milliseconds since the Unix epoch (1970-01-01T00:00:00Z). When you convert it to a UTC string ending in Z—such as 1700000000000 → 2023-11-14T22:13:20.000Z—the resulting timestamp is simultaneously valid under both ISO-8601 and RFC-3339.
You can convert any 13-digit millisecond timestamp right in your browser with the DateTimeTools Unix Timestamp Converter—with no sign-up, no server uploads, and automatic unit detection.
Step 1: Confirm the Timestamp Unit by Digit Count
Before converting, verify the digit length so your tool does not misinterpret milliseconds as seconds (which produces dates tens of thousands of years in the future):
| Digits | Unit | Example | Source |
|---|---|---|---|
| 10 digits | Seconds (s) |
1700000000 |
POSIX, Python time.time() |
| 13 digits | Milliseconds (ms) |
1700000000000 |
JavaScript Date.now(), Java, JSON APIs |
| 16 digits | Microseconds (µs) |
1700000000000000 |
PostgreSQL TIMESTAMP, tracing spans |
| 19 digits | Nanoseconds (ns) |
1700000000000000000 |
Go UnixNano(), OpenTelemetry, Kubernetes |
Step 2: Convert Online in One Click
- Open the Unix Timestamp Converter on
datetimetools.app. - Paste your 13-digit value (for example,
1700000000000). The converter detects the 13-digit length as milliseconds automatically. - Click Copy next to the ISO-8601 / RFC-3339 (UTC) row to grab
2023-11-14T22:13:20.000Z—or copy the offset-aware string if your system requires a local offset like+08:00.
Because all parsing happens locally in your browser's JavaScript runtime, you can safely paste sensitive production log timestamps without sending them to a server.
ISO-8601 vs. RFC-3339: What Is the Difference?
RFC-3339 is a stricter internet profile of ISO-8601 designed for APIs, JSON payloads, and network protocols. While ISO-8601 allows many optional variations (such as omitting separators or timezone designators), RFC-3339 enforces three key rules:
- 4-digit years are mandatory (
2023, never23). - Fractional seconds must use a period (
.), not a comma. - An explicit timezone offset is required: either
Z(for UTC) or±hh:mm(such as+00:00or-05:00).
Common Myth: Some guides claim RFC-3339 forbids
Zand requires+00:00. In fact, RFC-3339 Section 5.6 explicitly definesZas a valid UTC offset.
Local Command-Line and Code Equivalents
If you are converting timestamps inside a script or terminal:
// JavaScript: pass milliseconds directly (do NOT divide by 1000)
new Date(1700000000000).toISOString();
// "2023-11-14T22:13:20.000Z"
# Linux (whole seconds; divides by 1000, dropping milliseconds)
date -u -d @$((1700000000000 / 1000)) +%Y-%m-%dT%H:%M:%SZ
# macOS (whole seconds)
date -u -r $((1700000000000 / 1000)) +%Y-%m-%dT%H:%M:%SZ
Whenever you need millisecond precision preserved visually or want to inspect multiple formats (RFC-2822, local time, and UTC) side by side, use the DateTimeTools Unix Timestamp Converter.
Related Guides
- Break Down Exact Timestamp Differences (Y/M/D/H/M/S)
- DateTimeTools vs. EpochConverter & Timeanddate
- All Date & Time Guides
Frequently Asked Questions
Is a timestamp ending in Z valid for both ISO-8601 and RFC-3339?
Yes. RFC-3339 explicitly allows Z to represent UTC (offset 00:00), so a string like 2023-11-14T22:13:20.000Z is valid under both ISO-8601 and RFC-3339.
Why did a converter show a year in the far future for my 13-digit timestamp?
If an online converter treats a 13-digit millisecond value as seconds, the converted year will appear around the year 55,000+ instead of the 2020s. DateTimeTools automatically detects 13-digit inputs as milliseconds.
Does converting production log timestamps on DateTimeTools upload my data?
No. All timestamp parsing on DateTimeTools runs 100% locally in your browser with zero server uploads, making it safe for sensitive production logs.