Do you keep running into a “Safari cannot open webpage; WebKit encountered an internal error” or a “WebKitErrorDomain:300” error code while attempting to load webpages in your Safari browser? We’ll show you how to fix that on the iPhone, iPad, and Mac.

Apple devices use the WebKit engine to render webpages in Safari. However, various reasons, such as a corrupt Safari cache, conflicting experimental features, and a broken browser configuration, can stop the rendering engine from working, resulting in the “WebKit encountered an internal error.” Run through the fixes below to get Safari working as usual again.

Table of Contents
    How to Fix Webkit Encountered an Internal Error in Safari image 1

    Quit and Re-open Safari

    The quickest way to fix Safari’s “WebKit encountered an internal error” is to force-quit and re-open the web browser. That almost always eliminates unexpected glitches and other problems with WebKit.

    iPhone and iPad

    1. Swipe up from the bottom of the screen (or press the Home button twice) to open the App Switcher.
    2. Swipe away the Safari card from the screen.
    3. Exit to the Home Screen and re-open Safari.
    How to Fix Webkit Encountered an Internal Error in Safari image 2

    Mac

    1. Press Command + Option + Escape to open the Force-Quit dialog.
    2. Choose Safari and select the Force-Quit button.
    3. Wait a few seconds and re-open the web browser via Launchpad or Dock.
    How to Fix Webkit Encountered an Internal Error in Safari image 3

    Restart Your Devices

    If force-quitting Safari didn’t fix the “WebKit Encountered an Internal Error,” you must continue by restarting your iPhone or Mac device. That should resolve random issues on the system side preventing the browser from working.

    While restarting a Mac, make sure to stop macOS from saving a buggy Safari application state by unchecking the Reopen windows when logging back in option.

    How to Fix Webkit Encountered an Internal Error in Safari image 4

    Update the Operating System

    The following fix involves updating Safari. Since it’s a native app, the only way to do that is to update the system software on your Apple device to its latest version.

    iPhone and iPad

    1. Open the Settings app.
    2. Tap General > Software Update.
    3. Tap Download & Install.
    How to Fix Webkit Encountered an Internal Error in Safari image 5

    Mac

    1. Open the Apple menu and select System Settings.
    How to Fix Webkit Encountered an Internal Error in Safari image 6
    1. Select General on the sidebar. Then, select Software Update on the right of the window.
    How to Fix Webkit Encountered an Internal Error in Safari image 7
    1. Select Update Now (or Restart Now if you only need to finalize the update).
    How to Fix Webkit Encountered an Internal Error in Safari image 8

    Note: If your Mac runs macOS 12 Monterey or older, open the System Preferences app and select Software Update > Update Now to update its system software.

    Clear the Safari Web Cache

    If the “WebKit encountered an internal error” persists, it’s time to clear the Safari cache.

    iPhone & iPad

    1. Open the Settings app.
    2. Scroll down and tap Safari.
    3. Tap Clear History and Website Data.
    How to Fix Webkit Encountered an Internal Error in Safari image 9

    Mac

    1. Open Safari and select Safari > Clear History on the menu bar.
    How to Fix Webkit Encountered an Internal Error in Safari image 10
    1. Set Clear to all history.
    2. Select Clear History.
    How to Fix Webkit Encountered an Internal Error in Safari image 11

    Disable All Safari Extensions

    Another reason why Safari displays the “WebKit encountered an internal error” is because of unoptimized or conflicting browser extensions. Try disabling them.

    iPhone and iPad

    1. Open the Settings app and tap Safari.
    2. Tap Extensions.
    3. Disable all content blockers and extensions.
    How to Fix Webkit Encountered an Internal Error in Safari image 12

    Mac

    1. Open Safari and select Safari > Settings/Preferences on the menu bar.
    How to Fix Webkit Encountered an Internal Error in Safari image 13
    1. Switch to the Extensions tab.
    2. Uncheck the boxes next to all add-ons and exit the Preferences pane.
    How to Fix Webkit Encountered an Internal Error in Safari image 14

    If the “WebKit encountered an internal error” message no longer appears in Safari, open the App Store and install any pending updates to your extensions. Then, re-activate each browser add-on one by one. If a particular extension causes the error message to re-appear, disable or uninstall it and look for an alternative extension.

    Enter and Exit Safe Mode (Mac Only)

    If the “WebKit encountered an internal error” continues to show up in the Mac version of Safari, try booting your Mac into and out of Safe Mode. That clears various forms of redundant data preventing apps like Safari from working.

    Apple Silicon Mac

    1. Turn off your MacBook, iMac, or Mac mini.
    2. Turn your Mac on again but do not release the Power button; you’ll see the Startup Options screen soon.
    3. Hold the Shift key and select Macintosh HD > Safe Mode.
    How to Fix Webkit Encountered an Internal Error in Safari image 15

    Intel Mac

    1. Turn off your Mac.
    2. Boot your Mac while holding down the Shift key.
    3. Release the Shift key once you see the Apple logo.

    In Safe Mode, briefly open Safari and check if the WebKit error occurs. If it does, continue clearing additional forms of cached data on your Mac. If not, boot your Mac normally.

    Disable the Private Relay Feature

    If you subscribe to iCloud+, your iPhone, iPad, or Mac may have a feature called Private Relay active to improve privacy by protecting unencrypted site traffic. However, it’s still in beta and creates problems in Safari. So disable Private Relay and check if that makes a difference.

    iPhone and iPad

    1. Open the Settings app.
    2. Go to Apple ID > iCloud > Privacy Relay.
    3. Turn off the switch next to Private Relay.
    How to Fix Webkit Encountered an Internal Error in Safari image 16

    Mac

    1. Open the System Settings app.
    2. Select your Apple ID on the sidebar. Then, select iCloud.
    How to Fix Webkit Encountered an Internal Error in Safari image 17
    1. Disable the switch next to Private Relay.
    How to Fix Webkit Encountered an Internal Error in Safari image 18

    Note: To disable Private Relay in macOS Monterey or older, go to System Preferences > Apple ID > iCloud.

    Disable Private Wi-Fi Addresses (iPhone & iPad Only)

    On the iPhone and iPad, another reason for the “WebKit encountered an internal error” in Safari is the use of private Mac (Wi-Fi) addresses. To stop that:

    1. Open the Settings app on your iPhone and select the Wi-Fi option.
    2. Tap the Info button next to the active Wi-Fi connection.
    3. Disable the switch next to Private Wi-Fi Address.
    How to Fix Webkit Encountered an Internal Error in Safari image 19

    Disable the HTTP/3 Experimental Feature

    HTTP/3 is a protocol that improves latency and load times. However, it’s only available as an experimental Safari feature and is prone to breaking things. Check if it’s active and disable it.

    iPhone and iPad

    1. Open the Settings app.
    2. Tap Safari > Advanced > Experimental Features.
    3. Turn off the switch next to HTTP/3.
    How to Fix Webkit Encountered an Internal Error in Safari image 20

    Mac

    1. Open the Safari Settings/Preferences pane.
    2. Switch to the Develop tab and check the box next to Show Develop menu in the menu bar.
    How to Fix Webkit Encountered an Internal Error in Safari image 21
    1. Select Develop on the menu bar, print to Experimental Features, and uncheck the HTTP/3 option.
    How to Fix Webkit Encountered an Internal Error in Safari image 22

    Reset Experimental Preferences to Defaults

    If none of the fixes above help, try resetting all experimental Safari features to their default settings.

    iPhone and iPad

    1. Open the Settings app.
    2. Tap Safari > Advanced > Experimental Features.
    3. Scroll down and tap Reset All to Defaults.
    How to Fix Webkit Encountered an Internal Error in Safari image 23

    Mac

    Open the Develop menu in Safari (unhide it if you have to), point to Experimental Features, and scroll down to the bottom. Then, select Reset all to Defaults.

    How to Fix Webkit Encountered an Internal Error in Safari image 24

    Safari Is Working As Usual Again

    The troubleshooting tips above should help you resolve the “WebKit encountered an internal error” issue in Safari. Be sure to run through the quick fixes above if you run into the problem again.

    Suppose the WebKit error doesn’t go away. If so, switch to a different browser like Google Chrome, Firefox, or Microsoft Edge and wait until a future iOS or macOS update permanently resolves the issue. On the Mac, you can also factory reset Safari to its default settings.