ISO 8601 and RFC 3339 validator
Checks a limited ISO 8601/RFC 3339 subset: YYYY-MM-DD, optional T/t time (seconds optional), and optional Z/z or ±HH:MM offset. Only time with seconds and an offset gets the RFC 3339 verdict. Date-only or offset-less input has no epoch; epoch output discards fractional seconds, rounding down. This is not full standards validation.
ISO 8601 and RFC 3339 validator
Enter a date and time to validate.
Unix seconds (rounded down): —
ISO VS RFC 3339
| Feature | ISO 8601 | RFC 3339 |
|---|---|---|
| Week dates (2024-W14-5) | Allowed | Rejected |
| Space instead of T | Do not assume parser support | T/t in the grammar; §5.6 notes alternatives by agreement |
| Offset required | Optional | Required (Z or ±hh:mm) |
| Lowercase t / z | By agreement | T/Z may be lowercased |
ANSWERS
01 What is the difference between ISO 8601 and RFC 3339?
RFC 3339 profiles ISO 8601 for internet timestamps, requiring a calendar date, time including seconds, and Z or a numeric offset. This validator only supports extended YYYY-MM-DD dates, T/t times with optional seconds, and Z/z or ±HH:MM offsets. It labels only forms with seconds and an offset as RFC 3339. It rejects invalid calendar dates and does not support 24:00, leap second 60, week dates, ordinal dates or spaces. Some excluded forms are valid under a standard; this is not a complete ISO 8601 or RFC 3339 validator. See RFC 3339 §5.6.
02 Why does my ISO string parse in one language but not another?
Parsers support different subsets and precision. An offset-less date-time may be local in JavaScript and naive in Python; this validator returns no epoch for it or for date-only input. It rejects spaces rather than declaring every space-separated form invalid under all standards. Exactly three fractional digits are not required by RFC 3339. Agree on the format and precision with the receiving API. Here, fractional seconds are discarded for Unix output by rounding down, including before 1970.
03 Does ISO 8601 carry a timezone?
Z denotes UTC and +08:00 specifies a fixed UTC offset, not a named timezone with daylight-saving rules. An offset-less value does not identify an instant. This validator accepts supported date-only and offset-less forms for format checking but returns no epoch for them and never assumes the local timezone.
04 How do I convert ISO 8601 to a Unix timestamp?
Convert only a date-time with an explicit offset. JavaScript example: const iso = "2024-04-05T21:34:38+02:00"; console.log(Math.floor(Date.parse(iso) / 1000)); Python example: from datetime import datetime; import math; iso = "2024-04-05T21:34:38+02:00"; dt = datetime.fromisoformat(iso); print(math.floor(dt.timestamp())). Both print 1712345678. Preserve the parsed offset; never overwrite it with UTC. For arbitrary Python input, explicitly reject naive values (dt.tzinfo is None or dt.utcoffset() is None) before calling timestamp(). These examples convert known inputs, not validate the full standards. This page returns no epoch for date-only or offset-less input, and floors epoch output to whole seconds. See Python datetime documentation or the timestamp to date converter.
05 Is the validator offline?
Validation runs locally without uploading the input. Loading the page still involves hosting and potentially analytics requests; see the privacy policy. Offline use requires a previously cached page. Paste only the timestamp, not a full token or signed URL.
KEEP EXPLORING TOOLKITS
ALSO WORTH A LOOK
Independent alternatives, listed for cross-checking. Presence here is not an endorsement, and corrections are welcome.