Themewaves
How-To

How to Upload a Google HTML File to WordPress

Add Google’s verification file to WordPress and confirm ownership in Search Console.

How to Upload a Google HTML File to WordPress

What Google’s HTML verification file does

A Google HTML verification file proves that you can access your website’s files. Upload it to your site, then ask Google Search Console to check for it. This confirms site ownership without changing your WordPress theme or adding code to a page.

The file works only when it sits in the right place and stays there. Google looks for it at the root of your website, such as https://example.com/google123abc.html. The file name and contents must stay unchanged after download.

This method suits site owners who can reach their hosting files. If you cannot use FTP or a file manager, a WordPress plugin may be easier. You can also choose another ownership check in Search Console.

Get the verification file from Search Console

Open Google Search Console and select the site you want to verify. If it is not listed, add a property first. A domain property covers all subdomains and URL schemes. A URL-prefix property applies to one exact address, such as the HTTPS version of your site.

Choose the HTML file verification option under the ownership methods. Google will offer a file with a name similar to google123abc.html. Download it to your computer, and do not open and save it in a text editor.

  • Keep the full file name, including the .html ending.
  • Do not rename the file or change its contents.
  • Leave the Search Console verification page open for the final check.

If you need help finding the method, see Google’s site ownership verification steps. The file check is separate from adding a sitemap or submitting pages for indexing.

Sign in to WordPress and check your site address

Open your WordPress sign-in page, often found at example.com/wp-admin. Enter your account details and sign in. This opens the WordPress dashboard, where you manage posts, plugins, and site settings.

For an FTP upload, you may not need the dashboard at all. You need access to your web host’s file system instead. Check your hosting account for FTP or SFTP details, including the server name, user name, password, and port.

Before uploading, confirm the public address of your site. Note whether it uses HTTPS and whether it includes www. Your verification file must be reachable on the same host that Search Console is checking.

Upload the file with an FTP client

An FTP client connects your computer to your web host. FileZilla is one common choice. Use SFTP when your host supports it, since it protects the connection. Get the connection details from your host rather than guessing them.

Open the client and enter the host, user name, password, and port. Connect, then find the folder that holds your WordPress files. It often contains folders named wp-admin, wp-content, and wp-includes. Your host may use a folder called public_html or httpdocs.

Upload the Google file into the same folder as those WordPress folders. Do not put it inside wp-content or a theme folder. Those folders create a different web address, so Google may not find the file where it expects it.

  1. Connect to the server with the details from your host.
  2. Open the website’s root folder in the remote file list.
  3. Find the downloaded HTML file on your computer.
  4. Transfer it to the root folder without renaming it.
  5. Wait for the transfer to finish before closing the client.

Now test the file in a browser. Visit the exact address shown by Google, using your domain and the full file name. A successful check should show a plain page or file content, not a 404 error. Leave the file in place after the test.

Graphite laptop with screen off beside a crimson cable and white storage drive
Tools for transferring a site file

Use a WordPress plugin if FTP is not handy

A plugin can help when you do not want to use an FTP client. Pick a plugin that lets you upload a file to the site root, or use a trusted file manager plugin. Check its recent updates and reviews before installing it. Remove it when the task is done if you no longer need it.

In the dashboard, go to Plugins, choose Add New, and search for a suitable file manager. Install and activate it. Open its file view, then find the same root folder that contains wp-admin and wp-content.

Use the plugin’s upload control to add the downloaded verification file to that folder. Do not paste the file into a post or page. A media library upload often stores files in a dated folder, which does not match the root address Google checks.

Test the public file address before returning to Search Console. If the plugin cannot reach the root folder, use FTP or your host’s file manager instead. Do not change folder permissions or edit core WordPress files just to force an upload.

Crimson notebook and graphite pen beside a compact white storage device
A simple setup for managing site files

Verify ownership in Google Search Console

After the file is uploaded, return to the Search Console ownership screen. Click Verify for the HTML file method. Google will request the file at your site’s root. If it can read the file, Search Console confirms ownership.

If verification fails, do not remove or rename the file. First open its public address in a private browser window. Check that it loads without a sign-in, redirect, or error page. Then make sure the address matches the property you added.

Google’s verification help page explains the available methods and their checks. After verification succeeds, keep the file on the site. Removing it later can cause Google to lose proof of ownership.

Fix common upload and verification problems

A 404 error usually means the file is in the wrong folder, or its name changed. Compare the browser address with Google’s file name, character by character. Move the file to the website root if it landed in a subfolder.

A permission error may mean your account cannot write to that folder. Check your hosting account details or ask your host which folder serves the live site. Avoid broad permission changes, since they can put your site at risk.

  • Wrong property: Confirm the URL scheme, domain, and www choice.
  • Wrong folder: Place the file beside the main WordPress folders.
  • Changed file: Download a fresh copy and upload it unchanged.
  • Cache or redirect: Test the direct file address in a private window.
  • Upload blocked: Try SFTP or your host’s file manager.

Some security tools block unknown files or redirect requests. If the file is present but still fails, ask your host whether a security rule blocks access. You can also try another Search Console ownership method, such as a DNS record, if you control the domain’s DNS.

Step-by-step

  1. 01
    Download the file

    In Search Console, choose HTML file verification and download the offered file. Keep its name and contents unchanged.

  2. 02
    Find the website root folder

    Connect with an FTP client, host file manager, or suitable WordPress plugin. Open the folder that contains wp-admin and wp-content.

  3. 03
    Upload and test the file

    Place the file in the root folder, then open its public address in a browser. Confirm that it loads without an error.

  4. 04
    Verify ownership

    Return to Search Console and click Verify. Keep the file on your website after the check succeeds.

Frequently asked questions

Where do I upload the Google HTML verification file in WordPress?
Upload it to your website’s root folder, beside folders such as wp-admin and wp-content. Do not place it in a post, page, or theme folder.
Can I upload the Google verification file through the WordPress dashboard?
Yes, with a trusted file manager plugin that can access the site root. The Media Library may place the file in a subfolder that Google will not check.
How do I check whether the verification file uploaded correctly?
Open the exact file address Google provided in a browser. It should load without a 404 error or sign-in screen.
Why does Google Search Console say it cannot find my HTML file?
The file may be in the wrong folder, have a changed name, or belong to a different site address. Check the file name and property address, then test the direct URL.
Can I delete the HTML verification file after verification?
It is best to leave it in place. Google may use it later to confirm that you still own the site.
Share XFacebookWhatsApp

Related reading

About cookies on this site

Essential cookies keep pages loading and the enquiry form working. Anything beyond that is optional and we only set it if you say yes. Details live in our Cookie Policy.