{ ISO 8601 Formatter }

// 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.

Accepts natural dates, Unix timestamps, or ISO strings
--:--:--
Live clock — auto-updates every second
Years
Months
Weeks
Days
Hours
Minutes
Seconds
📅

Ready to format

Choose a mode and click the button

HOW TO USE

  1. 01
    Choose a mode

    Select Format Date, Current Time, Duration, or Interval from the tabs above the tool.

  2. 02
    Enter your input

    Type any date string, Unix timestamp, or fill in the fields for duration/interval.

  3. 03
    Copy the result

    Click any copy button to grab the exact ISO 8601 format you need.

FEATURES

ISO 8601 Full UTC + Local Duration P... Intervals Unix Timestamp Week Number Ordinal Date Live Clock

USE CASES

  • ⏱ API request/response timestamps
  • 📋 Log file date formatting
  • 🗓 Calendar and scheduling apps
  • 🔗 Building ISO duration strings for APIs
  • 🌏 Cross-timezone datetime conversion

WHAT IS ISO 8601?

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.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What is ISO 8601 date format?

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.

What does the "Z" mean at the end?

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.

What is an ISO 8601 duration?

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.

How does ISO 8601 week numbering work?

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).

What is an ISO 8601 interval?

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.

Can I use a Unix timestamp as input?

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.

Does this tool work offline?

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.

What is the ordinal date format?

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.

ISO 8601 Formatter — Format, Parse & Validate ISO Dates Online

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.

What Is ISO 8601 and Why Does It Matter?

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.

ISO 8601 Date-Only Format

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.

ISO 8601 Datetime and Timezone Handling

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.

ISO 8601 Duration Format

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 Interval Format

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.

ISO 8601 Week Dates and Ordinal Dates

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.

Accepting Any Date Input

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.

Why Use a Browser-Based ISO 8601 Formatter?

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.

Common ISO 8601 Examples

Bookmark 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.

☕