Safari extension · iPhone, iPad & Mac

Auto-delete cookies in Safari when you close a tab

Safari can't forget a site when you leave it. Cookie DNT can. When you close a site's tab, it deletes that site's cookies and stored data. You choose which sites, so you stay logged in everywhere else.

One-time purchase. No account, no tracking.

Cookie DNT in Safari: 38 cookies deleted on nytimes.com, with a Clean up Cookies Now button

What Cookie DNT does

Deletes cookies when you close a tab

A site's cookies and data are deleted once none of your tabs are on it. Or set a timer, from seconds to hours.

Works like Cookie AutoDelete

The Chrome and Firefox favourite isn't available for Safari. Cookie DNT gives you the same delete-on-close, allow-list workflow on iPhone, iPad and Mac.

You pick which sites get cleaned

Turn deletion on site by site, so you stay logged in elsewhere. Or auto-delete everywhere except an allow list - wildcards like *.example.com work.

Clears more than cookies

Also removes localStorage, sessionStorage and IndexedDB, the other places sites keep data about you.

No tracking

Cookie DNT doesn't track your browsing. Your site lists stay on your devices and your iCloud.

iPhone, iPad and Mac

Your site lists sync with iCloud, so every device deletes the same cookies.

Why not just use Safari's settings?

Safari can clear all your cookies, or block them all. It can't delete one site's cookies when you leave it. That's the gap Cookie DNT fills.

Clear HistoryPrivate BrowsingBlock All CookiesCookie DNT
Deletes cookies automaticallyNoYes-Yes
Keeps the logins you wantNoNoNoYes
Choose sites one by oneNoNoNoYes
Sites still work normallyYesYesOften breakYes

Cookie DNT doesn't block ads or trackers. Pair it with a content blocker if you want that.

Guides

Questions

Does Safari delete cookies automatically?

Safari limits some tracking cookies, but it has no setting to delete a site's cookies when you close its tab or after a set time. Clearing history removes everything at once, including the logins you want to keep. Cookie DNT deletes cookies automatically, only for the sites you choose.

How do I delete cookies for one site in Safari?

By hand, on iPhone and iPad go to Settings > Apps > Safari > Advanced > Website Data (Settings > Safari on iOS 17 and earlier); on Mac go to Safari > Settings > Privacy > Manage Website Data. Cookie DNT does this for you every time you leave the site.

Is there a Cookie AutoDelete for Safari?

Cookie AutoDelete is a Chrome and Firefox extension and isn't available for Safari. Cookie DNT works the same way in Safari - it deletes a site's cookies after you close its tab, and keeps the sites on your allow list.

Does Cookie DNT block ads?

No. Cookie DNT deletes cookies and site data. It doesn't block ads, trackers or network requests.

Will I get logged out of sites?

Only on sites you turn cleaning on for. Leave your bank, email and other logins off the list (or on the allow list in Block All mode) and they stay signed in.