TextText-based
text/calendar
iCalendar
Reference for text/calendar, the MIME type for iCalendar files used for sharing events, schedules, and calendar data.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .ics, .ical
HTTP Content-Type Header
HTTP Header
Content-Type: text/calendar; charset=utf-8Associated File Extensions
.ics.ical
Quick Facts
| MIME Type | text/calendar |
| Category | Text |
| Type | Text-based (human-readable) |
| Extensions | .ics, .ical |
Common Usage
iCalendar is the standard format for sharing calendar events between applications. It is used by Google Calendar, Apple Calendar, Outlook, and virtually every calendar application.
ICS files contain event details, recurrence rules, alarms, and attendee information.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.ics" type="text/calendar">
<!-- Or for script/media elements -->
<script type="text/calendar" src="file.ics"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('text/calendar');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'text/calendar' });nginx
# nginx.conf — add to types block or use default
types {
text/calendar ics ical;
}
# Or set for a specific location
location /api/ {
default_type text/calendar;
}Related MIME Types
More Text MIME Types
Other text types in the Text family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.