Add to calendar link and button generator
Make an Add to calendar button or a set of links for your website or email. Fill in your event, pick the calendars and the look, then copy the HTML. It's free, there's no account, and nothing leaves your browser.
Drop an .ics file here, or choose a file
Works with files from Google Calendar, Outlook, Apple Calendar and more
We read the first event in the file and fill in the form with it, so you can check it before making your button. The file never leaves your device.
The words on the button.
How to make an add to calendar button
-
Fill in your event
Enter the title, when it starts and ends, the time zone and, if you like, a location and description. Already have an .ics file? Import it instead.
-
Choose the calendars and the look
Pick where it's going (a website or an email), a drop-down, a row of buttons or a line of text links, and the colour, size and corners. The preview shows exactly what you'll get.
-
Copy and paste
Copy the HTML into your page or email. When someone clicks, their calendar opens with the event filled in, in their own time zone.
Where to paste it
The code is plain HTML, so it goes anywhere that accepts HTML.
- Websites
- Use the website version. In WordPress, add a Custom HTML block. In Squarespace, use a Code block, and in Webflow an Embed element. On a hand-built site, paste it where you want the button to appear.
- Emails and newsletters
- Use the email version. Most email builders have a block for your own HTML, often called Custom HTML or Code. The email version is built from tables with the styles written in, so it holds together in Gmail, Outlook and Apple Mail.
- Chat and documents
- Slack, Teams, WhatsApp and Notion don't take HTML. Use Copy plain links, or Copy Markdown links for tools that understand Markdown, and paste them in.
Frequently asked questions
Does the button need JavaScript or a CalTools account?
No. It's plain HTML with the styles written in. There are no scripts, no tracking and nothing loaded from CalTools, so it keeps working even if you never visit CalTools again. The drop-down uses the browser's built-in <details> element, which opens and closes without any code and works from the keyboard.
Will it work in an email?
Yes, if you choose Email under "Where will you put it?". Email apps don't run drop-downs and many strip icons, so the email version is a short list of buttons built from tables, with every style written inline. That's the approach that holds up in Gmail, Outlook and Apple Mail.
How do I add Apple Calendar?
Apple Calendar doesn't have a web link for adding an event, so it needs an .ics file. Tick Apple Calendar, download the .ics file, upload it to your website or a file host, and paste its address. The button then links to your file, which opens in Apple Calendar, Outlook desktop and other calendar apps.
Do recurring events work?
Partly, because of how each calendar's links work. The Google Calendar link and an .ics file carry the whole series. Outlook.com, Microsoft 365 and Yahoo links have no repeat option, so they add the first date only. For a repeating event, include Google and Apple Calendar.
Does it check colour contrast?
Yes. CalTools checks colours against the Web Content Accessibility Guidelines (WCAG) 2.2 at level AA, the standard UK public sector websites must meet. For text, WCAG asks for a contrast ratio of at least 4.5:1 between the text and its background. That's what lets people with low vision, colour blindness or a screen in bright sunlight read it.
For text links and outline buttons, where the colour is the text itself, a colour below 4.5:1 on a white page, such as a pale yellow or white, isn't used. They take your page's normal text colour instead, and the tool tells you. On solid buttons, the text is navy or white, whichever stands out more against the colour you pick. Some mid-tones don't reach 4.5:1 with either, and the tool tells you so you can choose a lighter or darker colour.
Can I change the event after I've added the button?
The event details are written into the links, so a change means making a new button and replacing the old code. People who already added the event keep the version they saved.