How It Works

WP Domain Changer is a free, browser-based tool that helps you safely update WordPress URLs when migrating your site to a new domain. Everything happens locally in your browser—your database files never leave your computer.

Step-by-Step Process

1

Export Your Database

First, you need to export your WordPress database as an SQL file. You can do this through:

  • phpMyAdmin: Select your database, click "Export", choose "Quick" method, and download the SQL file
  • cPanel: Go to MySQL Databases → phpMyAdmin → Export
  • Plugin: Use a backup plugin like UpdraftPlus or All-in-One WP Migration
  • Command line: Use mysqldump to create a backup
2

Upload Your SQL File

On the WP Domain Changer homepage, either drag and drop your SQL file into the upload area, or click to browse and select your file. The tool accepts both .sql and .txt files.

3

Automatic URL Detection

The tool automatically scans your database file and detects your WordPress site URL from the wp_options table. This saves you from typing it manually and ensures accuracy.

4

Enter New Domain

If the old URL was detected correctly, simply enter your new domain URL in the "New URL" field. Make sure to include the protocol (https:// or http://) and exclude trailing slashes.

5

Process & Download

Click the "Process & Download" button. The tool will:

  • Find all instances of the old URL in your database
  • Replace them with the new URL
  • Show you how many replacements were made
  • Automatically download the updated SQL file
6

Import Updated Database

Finally, import the updated SQL file back into your WordPress database on the new domain using phpMyAdmin or your preferred method. Your site should now work with the new domain!

🔒 Privacy & Security

100% Client-Side Processing: All file processing happens entirely in your web browser using JavaScript. Your database file is never uploaded to any server, never stored on our servers, and never sent over the internet.

This means your sensitive data remains completely private and secure on your own computer throughout the entire process.

Technical Details

URL Detection: The tool uses regular expressions to find WordPress URLs in the wp_options table, specifically looking for the siteurl and home options.

Find & Replace: The tool performs a global search and replace operation on the entire SQL file content, replacing all exact matches of the old URL with the new URL.

File Handling: Uses the HTML5 FileReader API to read files locally and creates a download link using Blob URLs. No temporary files are stored—everything is processed in memory.

What Gets Changed?

The tool replaces the old domain URL everywhere it appears in your database, including:

Best Practices

Ready to migrate your WordPress site?

Start Using WP Domain Changer