ISO 8601 Validator + Builder
Validate any ISO 8601 timestamp and see it expanded into every equivalent form, or build one interactively from a date, time, and timezone.
Reading an ISO 8601 timestamp part by part
Take 2026-06-02T18:42:23.456+05:30. The first block is the calendar date, year then month then day. T separates date from time. 18:42:23 is hours, minutes, and seconds on a 24-hour clock, and .456 is the fractional second. The final +05:30 is the offset from UTC, meaning this clock reads five and a half hours ahead of Greenwich. Replace the offset with Z and the time is UTC itself. Every part is fixed-width, which is why the format sorts and parses so reliably.
ISO 8601 versus Unix timestamp
They describe the same instant two ways. A Unix timestamp is one integer, compact and ideal for arithmetic, storage, and comparison, but unreadable to people and silent about the time zone it was captured in. An ISO 8601 string is human-readable, carries its offset, and is what JSON APIs, logs, and databases usually expect at the edges of a system. A common pattern is to store and compute in Unix time and format to ISO 8601 for anything a person or another service will read.
Sorting and comparing ISO strings
Because the fields run from largest to smallest and are zero-padded, ISO 8601 strings in the same offset sort chronologically as plain text. That breaks as soon as offsets differ: 2026-06-02T01:00:00+05:30 is earlier than 2026-06-01T22:00:00Z even though it sorts later. Normalise to UTC before comparing strings, or parse to an instant and compare the numbers. Database columns should store UTC and keep the original offset in a separate field if it matters.
Mistakes the validator catches
A space instead of T is accepted by RFC 3339 and many parsers but is not strict ISO 8601, so it is flagged as a hint. A missing offset is valid but means local time, which is rarely what a server wants. Two-digit years, month names, and slashes are not ISO 8601 at all. 24:00:00 is allowed by the standard to mean the end of a day but is rejected by most libraries, so use 00:00:00 of the next day instead. Week dates and ordinal dates are valid and will parse, but check that the consumer supports them before relying on them.
Frequently asked questions
What is ISO 8601?
ISO 8601 is the international standard for representing dates and times as strings. It defines the YYYY-MM-DD calendar form, the HH:MM:SS time form, the T separator that joins them, and the +HH:MM or Z suffix that anchors the timestamp to a UTC offset. Most modern APIs and databases expect ISO 8601 strings because they sort correctly as plain text and are unambiguous across locales.
What is the difference between basic and extended format?
Extended format uses separators; hyphens between date parts, colons between time parts, like 2026-06-02T18:42:23. Basic format strips the separators, like 20260602T184223. Both are valid ISO 8601, but extended is by far the more common form in APIs and human-facing software. Basic format is mostly used in older protocols and some compact serialization formats.
Is RFC 3339 the same as ISO 8601?
RFC 3339 is a profile of ISO 8601 with stricter rules: it always requires the T separator (though it also permits a space as an alternative), always requires a timezone offset, and disallows ISO 8601 features like week dates and ordinal dates. If your spec says RFC 3339, an ISO 8601 string will validate only if it sticks to the calendar-date + extended-time + offset combination.
When should I use the "Z" suffix vs an offset like +05:30?
Use Z when the time is in UTC and you want to make that explicit; it is shorter and unambiguous. Use a numeric offset when the time was captured in a specific local zone and the offset is meaningful for the consumer (audit logs, calendar events, anything tied to a place). Both are valid; the parsed DateTime is identical, only the representation differs.
What are week dates and ordinal dates?
Week dates encode the year, ISO week number, and weekday: 2026-W23-2 means Tuesday of week 23, 2026. Ordinal dates encode the year and day-of-year: 2026-153 means the 153rd day of 2026 (June 2nd). Both are valid ISO 8601 calendar variants but are rarely used in practice; most consumers expect the standard YYYY-MM-DD form.
Does ISO 8601 allow milliseconds and microseconds?
Yes. Fractional seconds are written after a period: 18:42:23.456 (milliseconds), 18:42:23.456789 (microseconds), 18:42:23.456789123 (nanoseconds). The standard places no limit on precision, but JavaScript Date only retains millisecond precision, so anything beyond 3 digits is truncated by most browser APIs.
How do I convert ISO 8601 to a Unix timestamp?
Paste the string into the validator above; the Unix seconds appear with every other form. In code, parse the string with a library that honours the offset, then take the epoch: new Date(s).getTime() / 1000 in JavaScript, or datetime.fromisoformat(s).timestamp() in Python 3.11 and later.
Does an ISO 8601 date include the time zone?
Only if it ends with Z or a numeric offset such as +05:30. A string like 2026-06-02T18:42:23 with no suffix is a local time with no zone, and different systems will interpret it differently. For anything stored or sent between machines, always include the offset.
What is the ISO 8601 format for a date without a time?
YYYY-MM-DD, four-digit year, two-digit month, two-digit day, separated by hyphens: 2026-06-02. It sorts correctly as text and cannot be confused with the US and European day-month orderings. The Build tab produces it as the Date only variant.