- HTML 83.1%
- JavaScript 13.6%
- Python 3.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| dist | ||
| docs/images | ||
| scripts | ||
| src | ||
| test | ||
| vendor/sheetjs | ||
| .gitattributes | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
Sheet to ICS
Vision: anyone with a spreadsheet of dates (a rota, a maintenance plan, a term calendar) can turn it into a calendar file for Outlook, Google Calendar or Apple Calendar in a couple of minutes, without installing anything or uploading the spreadsheet anywhere. Every row is shown before export, so nothing is dropped or changed without you seeing it.
Sheet to ICS is a single web page. Open it, choose a spreadsheet, check the columns and rows, and download an
.ics file to import into your calendar.
- Private: the spreadsheet is read inside your browser. The page can't connect to anything.
- One file:
dist/sheet-to-ics.htmlworks offline, from anywhere. - Reads
.xlsx,.xlsm,.xls,.ods,.csv,.tsvand.txt.
Quick start
- Open
dist/sheet-to-ics.htmlin Chrome, Edge, Firefox or Safari (double-click it). - Step 1: drag your spreadsheet onto the page, or click Choose file. Load sample shows how it works.
- Step 2: check that each field (Event title, Start date…) points at the right column. The page guesses from your column headings, and the grey text shows each column's first value.
- Step 3: look down the list. Rows marked Can't export say why; fix them in the spreadsheet or leave them out.
- Step 4: give the calendar a name if you like, then click Download .ics.
- Import the file into your calendar (see below).
The four steps in detail
1. Choose a spreadsheet
Drag the file onto the page or click Choose file. If the workbook has several sheets, pick one. Untick First row contains column names if your first row is already an event.
2. Map columns
| Field | Needed? | Notes |
|---|---|---|
| Event title | Yes | |
| Start date | Yes | A date cell, or text such as 2026-10-31, 31/10/2026, 31 Oct 2026 or Oct 31, 2026 |
| Start time | No | 14:30, 1430, 9pm or a time cell. A date cell that includes a time also gives the start time |
| End date | No | For events over several days |
| End time | No | Without one, timed events last as long as Timed events with no end says (1 hour unless you change it) |
| All-day flag | No | yes, y, true, 1, x, ✓ or all day means all day; no, n, false, 0 or timed means timed |
| Location, Description | No |
Also in this step:
- Text dates like 03/04/2026: day first (UK, the default) or month first (US). Real date cells are never affected.
- Timed events with no end: how long they last.
- Time zone for timed events (see "Time zones" below).
Rows that are empty in every mapped column are skipped.
3. Review events
- All day / Timed / Auto-detect sets the type for every row. Auto-detect uses the All-day column where it says yes or no; otherwise a row with a start time is timed and a row without one is all day.
- The All day / Timed buttons on a row change just that row (it gets a dot). Undo row changes puts them all back.
- Untick a row to leave it out; the box in the heading ticks every row that can be exported.
- The buttons above the list show all rows, ready rows, rows with notes, rows that need attention, or rows left out.
- A row that can't be exported (no title, no date, a date it can't read, a timed row with no time) shows the reason. Nothing is dropped silently.
- Notes mark rows that were adjusted, such as an end time earlier than the start, which is taken to mean the next day.
4. Export
Set the Calendar name (optional) and File name, check the preview, then Download .ics or Copy .ics text.
Importing the file into your calendar
- Outlook (Windows): File → Open & Export → Import/Export → Import an iCalendar (.ics) file → choose the file → Import (adds to your calendar) or Open as New (keeps it separate).
- Outlook on the web / new Outlook: Calendar → Add calendar → Upload from file.
- Google Calendar: Settings (gear) → Import & export → Select file from your computer → choose the calendar → Import.
- Apple Calendar: File → Import, or double-click the file.
Importing the same file twice creates the events twice: delete the first copy, or import into a calendar of its own.
Time zones
For timed events (all-day events have no time zone):
- Floating (same clock time everywhere), the default: the same clock time wherever the calendar is opened. Best for local events.
- Tag with this zone: labelled with this computer's time zone, so travellers see it at the right moment.
There's no
VTIMEZONEblock, so older Outlook desktop versions may treat these as floating. - Convert to UTC: converted to universal time from this computer's zone.
Good to know
- Spreadsheet date cells are read exactly, including workbooks saved in the 1904 date system (older Mac Excel), so your computer's time zone can't shift a date.
- An all-day event over several days ends the day after its last day in the file; that's how calendars expect it.
- Commas, semicolons, backslashes and line breaks in your text are kept.
Limits
- Re-importing makes duplicates. Each export gives events new IDs, so it can't update events imported before.
- No repeats or reminders. Recurring events and alarms aren't supported.
- Titles can't be edited on the page. Fix them in the spreadsheet and load it again.
Security
- The page loads nothing from the network and has a Content-Security-Policy of
default-src 'none', so it can't send anything anywhere even if something inside it tried to. Files are read in the browser and never leave it. - It bundles SheetJS 0.20.3, from SheetJS's own site (SheetJS stopped publishing to npm after 0.18.5). That
version fixes the two known problems of 0.18.5 with hostile files: CVE-2023-30533 (prototype pollution) and
CVE-2024-22363 (a pattern that could hang the tab). The build checks it against
vendor/sheetjs/SHA256SUMS. - The only exposure is opening an untrusted spreadsheet, and the page holds nothing worth stealing.
For developers
src/sheet-to-ics.html the page's source; SheetJS goes in at /*@@SHEETJS@@*/
vendor/sheetjs/ the bundled library, its licence, version and SHA256SUMS
scripts/build.py builds dist/ (Python 3, standard library only)
dist/sheet-to-ics.html the finished page (committed, so a copy of the repo works straight away)
test/smoke.test.js tests of the finished page in jsdom
test/fixtures/ .xlsx files made with openpyxl (1900 and 1904 date systems)
docs/images/ the screenshots in this README
Build and test:
python3 scripts/build.py # rebuild dist/
npm install && npm test # build, then run the tests (Node 18 or later)
The tests load the finished page with the sample and the fixture files, and check every fixture in five time
zones (UTC, London, New York, Kolkata and Chatham), so a change that lets the computer's zone shift a date or time
fails. The build fails if the library doesn't match SHA256SUMS, if it contains </script, or if the source
refers to any outside address.
Upgrading SheetJS:
- Download the release from https://cdn.sheetjs.com/, for example
curl -O https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz, and copypackage/dist/xlsx.full.min.jsandpackage/LICENSEintovendor/sheetjs/. - In that folder, run
sha256sum xlsx.full.min.js > SHA256SUMSand updateVERSION. - Run
npm test, then commitvendor/anddist/together. Check SheetJS's changelog for changes tosheet_to_json: 0.20 started returning date cells asDateobjects, which the page turns back into Excel serial numbers (serialOfin the source).
Version, licence and author
Version 1.1.3; see CHANGELOG.md. MIT licence (LICENSE); the bundled SheetJS is Apache-2.0 (vendor/sheetjs/LICENSE). By Rawrso.me - David Hall.
