# What an iCalendar (ICS) file format is

Learn what an iCalendar (ICS) file holds, how its text structure works, and how to use .ics files to move family appointments between calendar apps.

An iCalendar file is a plain-text file, saved with the extension .ics, that carries calendar data between apps. The format follows an open standard called RFC 5545, so different calendar programs can read the same events. One file can hold a single appointment, a whole family schedule, or a list of tasks. 

- An ICS file is readable text, so you can open it in any text editor.
- Every ICS file wraps its content between BEGIN:VCALENDAR and END:VCALENDAR lines.
- Each appointment sits inside its own VEVENT block with a start, an end and a summary.
- Importing an ICS file copies events once, while subscribing to a calendar link keeps them updated.
- Keep an exported ICS file as a backup of family appointments outside any single app.
 

## What the iCalendar format is for 

The iCalendar format exists so that calendar data can move between programs without retyping. Calendar apps from different makers store events in their own internal ways. An ICS file acts as a shared language that each of them can read and write. 

A calendar interchange format is a file layout built for exchanging schedules rather than storing them. iCalendar fills that role for events, tasks, reminders and free or busy time. When you click a meeting invite or download an appointment, an ICS file often does the work. 

Families meet ICS files in school calendars, booking confirmations and shared activity schedules. A clinic or a sports club can publish one file that any parent adds to a phone. The person receiving the file does not need the same app as the sender. 

## RFC 5545, the standard behind ICS files 

RFC 5545 is the open specification that defines the iCalendar format and its rules. The Internet Engineering Task Force, a standards body for internet technology, publishes the document. RFC stands for Request for Comments, the name used for its technical standards. 

The current specification replaced an earlier version of the standard known as RFC 2445. Later companion documents add extra properties, such as event colors and links to video conferences. Related standards cover scheduling between people and syncing calendars over the network. 

An open standard means anyone can build software that reads or writes ICS files. No license fee applies, and no single company controls how the format works. That openness explains why the same file works across phones, desktop apps and web calendars. 

## How an ICS file is structured 

The ICS file structure is a nested set of blocks, each opened and closed by matching lines. The outer block starts with BEGIN:VCALENDAR and finishes with END:VCALENDAR. Every event, task and time zone definition sits between those two lines. 

Inside the calendar block, each piece of data is a property written on its own line. A property has a name, a colon and a value, as in SUMMARY:Dentist visit. Some properties also carry parameters, extra details placed after a semicolon before the colon. The file header needs VERSION:2.0 and PRODID, a line naming the program that made the file. 

Components are the named blocks inside the calendar, each describing a different kind of item. Events use VEVENT, tasks use VTODO, and journal notes use VJOURNAL. Free and busy times use VFREEBUSY, and time zone rules sit in VTIMEZONE. A VALARM block nests inside an event or task to trigger a reminder. 
| Component | What it holds | 
| VEVENT | An appointment or event with a start and an end | 
| VTODO | A task, with an optional due date and completion status | 
| VJOURNAL | A dated note or journal entry | 
| VFREEBUSY | Blocks of free or busy time for scheduling | 
| VTIMEZONE | Rules that describe a time zone and its offsets | 
| VALARM | A reminder nested inside an event or a task |  

## What a VEVENT block contains 

A VEVENT block is the component that describes one appointment, meeting or other event. The block opens with BEGIN:VEVENT and closes with END:VEVENT inside the calendar. One file can contain many VEVENT blocks, one after another. 

Two properties are required in every VEVENT: UID and DTSTAMP. UID is a unique identifier that lets apps recognize the same event when it changes. DTSTAMP records when that version of the event data was created. 

The remaining VEVENT properties describe what happens, when and where. DTSTART sets the start, and DTEND or DURATION sets the end. SUMMARY gives the title, while LOCATION and DESCRIPTION add the place and notes. RRULE, short for recurrence rule, makes the event repeat on a pattern. 

- UID: unique identifier for the event
- DTSTAMP: when this version of the data was written
- DTSTART: start date and time
- DTEND or DURATION: when the event ends
- SUMMARY: the event title
- LOCATION: where it takes place
- DESCRIPTION: free-text notes
- RRULE: the repeat pattern
 

## How ICS files store time zones and repeats 

Times in an ICS file use a compact pattern without spaces or dashes. The digits give year, month and day, then the letter T, then hours, minutes and seconds. A trailing Z marks the time as UTC, Coordinated Universal Time, the global reference clock. 

Local times in ICS files can carry a TZID parameter that names the time zone. A matching VTIMEZONE block in the file can describe that zone's offsets and daylight saving changes. Without clear time zone data, an app may show an event at the wrong hour. 

Repeating events in ICS files rely on the RRULE property instead of separate copies. A rule such as FREQ=WEEKLY;BYDAY=TU describes an event that repeats every Tuesday. EXDATE lists single dates to skip, like a holiday that cancels one weekly lesson. 

## Opening, importing and subscribing to .ics files 

The file extension .ics tells a device to open the file in a calendar app. Tapping the file on a phone or computer offers to add its events to a calendar. Web calendars accept ICS files through an import option in their settings. 

Importing an ICS file copies its events once into your calendar. Later changes made by the sender do not reach your copy. To get an update, you would need a fresh file from the sender. 

Subscribing to a calendar means linking to an ICS file published at a web address. Your app checks that address again from time to time and pulls in changes. How often it refreshes depends on the app and its settings. A subscribed calendar is usually read-only, so edits belong in the source calendar. 

## Using ICS exports for family records 

Exporting a family calendar as an ICS file creates a portable copy of your appointments. Calendar apps offer this through an export or download option, often per calendar. The resulting file keeps titles, times, locations and notes in readable text. 

An ICS export works as a backup that stays useful if you change calendar apps. You can import the file into a new service and keep past appointments. Storing exports alongside other household records gives one place to look back at visits and handovers. 

Sharing a single ICS file helps when another caregiver needs a set of appointments. A file for school pickups or medical visits can travel by email or messaging. Check notes and descriptions before sending, since they may contain private health or family details. 

## Limits and quirks of the ICS format 

ICS files carry calendar data well, but not every app supports every property. A field added in one app can disappear when another app imports the file. Colors, attachments and app-specific fields are details that may not survive the move. 

The standard sets technical rules that matter when you edit an ICS file by hand. Lines end with a carriage return and line feed, a two-character line break. Long lines are folded, meaning they continue on the next line that starts with a space. Text uses UTF-8 encoding by default, which handles accented letters and other scripts. 

An ICS file holds one snapshot of a calendar rather than a live connection. Two people editing their own copies end up with separate versions that do not merge. For ongoing shared schedules, a subscribed or shared calendar suits better than passing files back and forth. 

## Questions about iCalendar and ICS files 

### Is it safe to open an ICS file? 

An ICS file is plain text and cannot run programs by itself. Invitations can still contain links in their descriptions that lead to harmful websites. Open ICS files only from senders you recognize, and check links before clicking them. 

### Can I edit an ICS file in a text editor? 

Yes, an ICS file can be edited in any plain-text editor. Keep the BEGIN and END lines matched and the property names unchanged. Save a copy first, since a small typo can stop a calendar app from reading the file. 

### What is the difference between iCal and iCalendar? 

iCalendar is the name of the file format, while iCal was the earlier name of Apple's calendar app. The two names are often mixed up because the app used ICS files. Any program that follows RFC 5545 can read the same iCalendar file. 

### Can one ICS file contain several events? 

Yes, a single ICS file can hold many events, tasks and time zone blocks. Each event sits in its own VEVENT block inside the one calendar wrapper. An export of a whole family calendar uses exactly this layout. 

### Why do imported events show the wrong time? 

Wrong times after import usually stem from missing or mismatched time zone data in the ICS file. An event saved as a floating local time takes the time zone of whoever opens it. Checking the TZID values or the trailing Z in the file shows how times were stored. 

### Do ICS files include reminders and attendees? 

Yes, ICS files can store reminders in VALARM blocks and guests in ATTENDEE properties. The ORGANIZER property names the person who set up the event. Some apps ignore imported alarms, so reminders may need setting again after import.
