How to check an .ics file

An .ics file that a calendar app refuses to import usually fails for a reason that is provable from the file itself. This page is the procedure, with icslint by RakTikoo as the worked example: install it once, point it at a file or a folder, and read findings that name the line, the rule, and the source. The check is offline and deterministic — nothing leaves your machine, and the same file always gets the same answer.

1. Install icslint

pip install git+https://github.com/RakTikoo/icslint

(Python 3.10+, zero dependencies. Other routes — a release wheel, pipx, uv, Homebrew, Scoop — are in the repository.)

2. Check the file

Pass any mix of files and folders. Folders are scanned recursively for *.ics files; overlapping paths count once, and one tally covers all inputs:

icslint check <file-or-folder> [<file-or-folder> ...] [--strict] [--format text|json]

The repository ships examples/broken.ics, a small calendar with five seeded defects. A real run (icslint 0.1.0, 2026-11-30) prints:

$ icslint check examples/broken.ics
examples/broken.ics:4: ERROR V02 [VEVENT[UID=broken-1@example.com]] This VEVENT has no DTSTAMP. Every VEVENT, VTODO, VJOURNAL and VFREEBUSY must include one — a missing DTSTAMP is the documented cause of Google Calendar's 'Unable to launch event' failure. (RFC 5545 §3.6.1–§3.6.4 ABNFs; §3.8.7.2; importer behaviour: Terence Eden, Jul 2026 (missing DTSTAMP is the documented cause of Google's 'Unable to launch event'))
examples/broken.ics:14: ERROR E02 [VEVENT[UID=broken-2@example.com]] DTEND (20260601T090000Z) is not later than DTSTART (20260601T100000Z). The end of an event must be later than its start. (RFC 5545 §3.8.2.2 (and §3.8.2.3 for DUE); importer behaviour: csvtoics.app, Aug 2026 §5 (equal all-day dates are a zero-length event some importers drop))
examples/broken.ics:21: ERROR R03 [VEVENT[UID=broken-3@example.com]] This RRULE carries both COUNT and UNTIL. They must not occur in the same recurrence rule — pick one. (RFC 5545 §3.3.10 ('MUST NOT occur in the same recur'); importer behaviour: csvtoics.app, Aug 2026 §12)
examples/broken.ics:22: WARNING W01 [VEVENT[UID=broken-3@example.com]] SUMMARY contains an unescaped ';'. In a TEXT value, ';' and ',' must be escaped with a backslash — Outlook truncates the value at an unescaped semicolon. (RFC 5545 §3.3.11 (MUST be escaped); importer behaviour: SpreadEvent, Apr 2026 (Outlook truncates the value at an unescaped semicolon))
examples/broken.ics:25: ERROR V04 [VEVENT[UID=broken-3@example.com]] UID 'broken-3@example.com' is used by more than one component with the same RECURRENCE-ID (none). A UID must be globally unique; importers treat a repeat as an update to the first event, not as a new one. Components sharing a UID with different RECURRENCE-IDs are legal overrides and are not flagged. (RFC 5545 §3.8.4.7 and §3.8.4.4; importer behaviour: csvtoics.app, Aug 2026 §6 (Google treats a repeated UID as an update; Outlook may refuse))
icslint: 1 file checked, 4 errors, 1 warning
$ echo $?
1

Every finding gives the file, the physical line where the offending content line starts, the component, the rule ID, the severity, a plain-language explanation, and its source — an RFC 5545 section, or a named importer source labelled Importer behaviour.

A clean file is silent:

$ icslint check examples/clean.ics
icslint: 1 file checked, no findings

3. Read the exit code

Exit codeMeaningWhat to do
0No errors (warnings allowed).Nothing required. Read any warnings if you want the file to be strict-clean.
1At least one error — or any warning under --strict.Fix the lines the findings name, in the generator that produced the file if you have one.
2Usage error or unreadable input.Check the path and the command line; the message is one line and names the problem.

Because the verdict is an exit code, the same check works as a CI gate. The repo is also a composite GitHub Action:

- uses: RakTikoo/icslint@main
  with:
    path: calendars/

--format json emits the same findings as JSON for other tooling.

Honest limits

icslint never expands an RRULE into instances and never judges VTIMEZONE transition semantics — it checks form, not the calendar the form describes. It also never edits your file. The full limits list is on the index page and in the repository; the rule and test numbers behind this page are on the measured results page.