Mixed Content Checker and Fixer
Paste the source of an https page to list every http resource with its line, tag and risk, rewrite the ones you choose to https and add the upgrade-insecure-requests tag.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Copy the source
Open view-source of the https page and copy all of it, or save the HTML file.
- 2Paste or open
Paste into the box or use Open file; the counts appear at once.
- 3Review findings
Filter by kind and note which hosts need checking.
- 4Check hosts
Open each host with https and add the ones that fail to the skip box.
- 5Fix
Choose kinds to rewrite, keep the meta tag option on and copy or download the result.
- 6Cover the server
Add the response header from the Server tab so future pages are covered.
About this tool
Mixed content happens when a page served over https asks for a file over plain http. The padlock disappears or turns into a warning, and browsers block the riskiest requests outright, which is why a slider, a stylesheet or an embedded map can stop working right after a site moves to https. This checker reads the page source you paste or open and lists every http reference it finds, with the line number, the tag, the attribute and the kind of risk. It looks in the places that matter: script, iframe, object and embed sources, stylesheet links, image src and srcset, video and audio sources and posters, url() and @import inside style blocks and style attributes, form actions, meta refresh targets, http strings inside inline scripts and a base element with an http address. Comments are ignored. After the scan, the Fix tab rewrites the kinds you choose to https or to protocol-relative URLs, skips hosts you know have no https, and can add the upgrade-insecure-requests meta tag to the head.
Active, passive and the rest
Active mixed content can change the whole page, so browsers block it: scripts, stylesheets, frames, objects and fetch requests. Passive content, meaning images, audio and video, is upgraded to https automatically by current browsers, and blocked if the server cannot answer over https. An http form action is not loaded at all, but submitting the form sends the visitor's data in clear text, and browsers warn first. Plain links to http pages are not mixed content; they are listed separately so you can update them when the target site supports https.
Before switching a host
Open each host from the list with https in a new tab. If it loads, the rewrite is safe. If it fails, put the host in the skip box and either copy the file to your own server or find another provider.
Server-wide fix
The Server tab gives the same instruction as a response header, with Apache and nginx snippets, and an HSTS header for later. A header covers every page, including ones you have not scanned.
Limits
The scan works on the HTML you give it, not on the live site, so it does not see requests that JavaScript builds at runtime from variables, or files referenced inside external stylesheets. It cannot test whether a host supports https. Check the browser console on the real page after the fix.
Worked example
The loaded example is a sale page that moved to https and lost its padlock. The scan finds 5 active items (an http stylesheet, the slider script, an @import in the style block, a map iframe and an http fetch inside an inline script), 5 passive items (the favicon, a CSS background, the logo, its 2x srcset entry and a promo video), 1 http form action and 1 outgoing link. With active, passive and forms ticked and the meta tag option on, the download has 0 active, 0 passive and 0 form items left; only the partner link still uses http.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: W3C Mixed Content specification and MDN: mixed content and upgrade-insecure-requests
Frequently asked questions
What is the difference between blocked and upgraded content?
Scripts, styles and frames are blocked on https pages. Images, audio and video are switched to https by current browsers and only fail if the server has no https.
Is protocol-relative better than https?
No. On an https page both load the same way, and https is clearer. Protocol-relative URLs are only useful for old pages that are still served over both.
Does upgrade-insecure-requests fix everything?
It makes the browser try https for every http request on the page. Files on hosts without https will still fail, so fixing the URLs is still worth doing.
Why is a link to an http site listed?
It is not mixed content, but visitors leave the secure connection. It is listed as a low-priority item.
Can it scan many pages?
Paste or open one file at a time. For a full site, run a crawler, export the pages and check templates first, because one header or footer fix covers most pages.
Is my code uploaded?
No. Scanning and rewriting run in your browser.
