ISO 8601 Time Strict Validator
Strictly validate an ISO 8601 duration string (like P1Y2M10DT2H30M). Useful for APIs, scheduling, videos and any field using the ISO duration standard.
Checking ISO 8601 strings before they break
The API sent back PT1H30M and your parser threw. Or you posted 2026-05-10 12:00 with a space in the middle and the endpoint rejected it without saying why. Pasting the string here answers the shape question fast: green or red, updating as you type, with no button to press and nothing to configure first.
Two shapes pass. One is a full date-time, YYYY-MM-DDTHH:MM:SS, with optional fractional seconds and a mandatory offset, either Z or something like -03:00. The other is a duration starting with P, carrying years, months and days, then hours, minutes and seconds after the T. Plenty of things people expect to pass come back red: a bare 2026-05-10, local time with no offset, lowercase t or z, a decimal comma, and week durations like P1W.
The catch worth knowing: this checks shape, not calendars. The string 2026-13-45T99:99:99Z reads as valid, because month 13 and hour 99 still fit the digit pattern. A lone P with no components also passes, even though ISO requires at least one. Treat the page as a typo and mask check, and leave range validation to whatever library actually parses the value. Nothing leaves your browser.
Frequently asked questions
Why does 2026-05-10 come back invalid?
Does it accept week durations such as P2W?
Does green mean the date really exists?
Related Tools
ISO 8601 Date Validator
Verify whether a string is a valid ISO 8601 date/time (with timezone) and show the detected components.
Time Marker (ISO 8601) Validator
Validate ISO 8601 full timestamp format with UTC, offsets and millis.
Date Format Validator (ISO/Common)
Check if a date is in ISO 8601 or common formats (YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY). Auto-detects format.
EAN-8 Checksum Validator
Validate an EAN-8 barcode (8 digits) by checking the check digit with the official algorithm. Useful for small products, retail and inventory control.
ISO 3166 Country Code Validator
Validate ISO 3166-1 alpha-2 / alpha-3 country codes and resolve country name.
LEI Validator (Legal Entity Identifier)
Validate a 20-character LEI (Legal Entity Identifier) by the ISO 17442 standard — the global company identifier used in financial transactions.