Ready to format
Choose a mode and click the button// format & validate ISO 8601 dates in one click
Format, parse, and validate ISO 8601 date and datetime strings instantly. Convert between timezones, durations, and intervals — free, browser-based.
Ready to format
Choose a mode and click the buttonSelect Format Date, Current Time, Duration, or Interval from the tabs above the tool.
Type any date string, Unix timestamp, or fill in the fields for duration/interval.
Click any copy button to grab the exact ISO 8601 format you need.
ISO 8601 is an international standard for representing dates and times. It defines formats like 2024-03-15T10:30:00Z, durations like P1Y2M3D, and intervals like 2024-01-01/2024-12-31. Widely used in APIs, databases, and file systems worldwide.
ISO 8601 is an international standard (ISO 8601:2019) defining how dates and times should be represented as strings. The most common form is YYYY-MM-DDTHH:mm:ssZ, where T separates the date and time, and Z indicates UTC. It eliminates ambiguity across cultures and locales.
The Z suffix stands for "Zulu time", which is UTC+0. It indicates that the datetime is expressed in Coordinated Universal Time (UTC). You may also see offset notation like +05:30 or -07:00 instead of Z when the time is in a specific timezone.
An ISO 8601 duration is a string starting with P that represents a period of time. Example: P1Y2M3DT4H5M6S means 1 year, 2 months, 3 days, 4 hours, 5 minutes, 6 seconds. Weeks are represented as P2W. Durations are used in APIs, calendars, and scheduling systems.
ISO 8601 defines weeks as starting on Monday. Week 1 is the week containing the first Thursday of January. This means a year can have 52 or 53 weeks. The format is YYYY-Www-D (e.g., 2024-W11-5 for Friday of week 11, 2024).
An ISO 8601 interval represents a time span between two moments. It can be expressed as start/end (e.g., 2024-01-01/2024-12-31), start/duration (e.g., 2024-01-01/P1Y), or duration/end. Useful for calendar events and scheduling APIs.
Yes. This tool accepts Unix timestamps (seconds since 1970-01-01T00:00:00Z) and converts them to ISO 8601 format. Simply paste the numeric timestamp (e.g., 1710460800) into the input field and click Format. Both seconds and milliseconds are supported.
All date formatting and validation happens entirely in your browser using JavaScript. No data is sent to any server. The tool works offline once the page is loaded, making it safe for sensitive date processing.
The ordinal (or day-of-year) format represents a date as YYYY-DDD, where DDD is the day number within the year (001–366). For example, March 15 in a non-leap year is day 074, written as 2024-074. This format is commonly used in aviation and science.
The ISO 8601 Formatter is a free, browser-based tool that helps developers, data engineers, and technical writers format any date or time value into the internationally recognized ISO 8601 standard. Whether you're working with REST APIs, database timestamps, log files, or calendar systems, this tool gives you the exact ISO 8601 string you need — instantly, without any server-side processing.
ISO 8601 is a global standard (published by the International Organization for Standardization) for representing calendar dates and time values as unambiguous strings. Before ISO 8601, date formatting was chaotic — "01/02/03" could mean January 2, 2003 in the US, or February 1, 2003 in Europe, or even February 3, 2001 in some other systems. ISO 8601 solves this by defining a single, universally readable format.
The most common ISO 8601 datetime format is YYYY-MM-DDTHH:mm:ss.sssZ. Each component has a fixed meaning: the year (4 digits), month (2 digits), day (2 digits), the literal letter T as a separator, hours, minutes, seconds, optional milliseconds, and a timezone designator (either Z for UTC or an offset like +05:30).
ISO 8601 is required or strongly recommended by virtually every major API protocol and data standard, including JSON (RFC 3339 is a strict subset), HTML5 datetime-local inputs, HTTP headers (via RFC 7231), OpenAPI/Swagger specs, GraphQL scalars, AWS and GCP service APIs, and YAML timestamps.
When you only need to represent a calendar date without time information, ISO 8601 defines the compact format YYYY-MM-DD. For example, March 15, 2024 becomes 2024-03-15. This format sorts lexicographically as a string, which makes it extremely useful for filenames, log directories, and database indexes. This tool outputs the date-only format alongside the full datetime for quick reference.
Timezone handling is one of the most error-prone aspects of working with dates. ISO 8601 addresses this by including the timezone offset directly in the string. UTC is denoted with a trailing Z (short for "Zulu time"), while other zones use an offset like +05:30 or -07:00. This formatter lets you choose between UTC output and your local timezone, so you always get the format that matches your use case — whether you're storing server-side UTC timestamps or displaying user-facing local times.
One of the less well-known parts of ISO 8601 is its duration format. A duration string begins with the letter P (for "period") and then lists time components using standard designators: Y for years, M for months, W for weeks, D for days. Time components (hours, minutes, seconds) come after a T separator. For example, P1Y6M0DT12H30M0S means "1 year, 6 months, 12 hours, and 30 minutes."
ISO durations are widely used in APIs like Google Calendar, iCalendar (RFC 5545), JIRA's time-in-status queries, JavaScript's Temporal API (the upcoming standard), AWS Step Functions, and many healthcare and insurance data formats. This tool's Duration Builder mode lets you fill in each field with plain numbers and instantly generates the correct ISO duration string.
ISO 8601 also defines how to express a span of time between two specific moments. An interval can be written as start/end, start/duration, or duration/end. The most common form is start/end, such as 2024-01-01T00:00:00Z/2024-12-31T23:59:59Z. Intervals are used in calendar APIs, reporting systems, billing cycles, and anywhere you need to describe a time range without ambiguity. The Interval mode in this tool accepts any two dates and outputs all three interval representations for you.
Beyond the standard calendar date, ISO 8601 defines two alternative representations. The week date format uses YYYY-Www-D notation, where ww is the ISO week number (01–53) and D is the day of the week (1 = Monday, 7 = Sunday). The ordinal date format uses YYYY-DDD, where DDD is the day of the year (001–366). Both formats are fully valid ISO 8601 and useful in specific domains: week dates in manufacturing, logistics, and HR systems; ordinal dates in aerospace and scientific data.
This formatter accepts a wide range of input formats and converts them to ISO 8601, so you don't have to remember the exact syntax. You can paste in natural language dates like "March 15, 2024", ambiguous numeric formats like "03/15/2024", Unix timestamps in seconds or milliseconds, or even existing ISO strings that you want to reformat into a different timezone. The JavaScript Date parser handles the heavy lifting, and the tool displays a clear error message if your input cannot be parsed.
All processing in this tool happens 100% in your browser. No data is sent to any server, and the tool works even without an internet connection once loaded. This is important for developers handling sensitive production timestamps, audit log dates, or user data. There is no rate limit, no account required, and no cost — ever.
2024-03-15 — Date only2024-03-15T10:30:00Z — Datetime in UTC2024-03-15T10:30:00+05:30 — Datetime with offset2024-03-15T10:30:00.000Z — Datetime with milliseconds2024-W11-5 — Week date (Friday, week 11)2024-075 — Ordinal date (day 75 of 2024)P1Y2M3DT4H5M6S — Duration: 1 year, 2 months, 3 days, 4 hours, 5 minutes, 6 seconds2024-01-01/2024-12-31 — Interval from Jan 1 to Dec 31Bookmark this page and use the ISO 8601 Formatter whenever you need a reliable, fast, and free way to format dates and times for APIs, logs, reports, or any technical context requiring the international date standard.