Free tool

WordPress Serialized Search and Replace Move domains without breaking data.

Change the site address in a WordPress database export without breaking widgets, theme settings or page builder content. Serialized lengths are recalculated for you, and the file never leaves your computer.

Replace a URL in your SQL file or fix a broken serialized string

What to replace

Usually the old and new site address. The JSON-escaped (https:\/\/) and URL-encoded forms are replaced too.

Your database export

The file is processed on your computer and never uploaded. Keep your original file as a backup.

Why plain find and replace breaks WordPress

Serialized data stores the length of every text in bytes. Change the text without the number and PHP cannot read the value any more.

Before

s:14:"http://old.com";

Plain find and replace

s:14:"https://new-site.com";

Says 14 bytes, has 20. The whole option is lost.

This tool

s:20:"https://new-site.com";

Lengths are counted in bytes, so accented letters and emoji stay correct. Nested serialized values and JSON with escaped slashes (https:\/\/), which page builders like Elementor use, are handled too. Values that were broken before the change are reported and left as they are.

How to move WordPress to a new domain with this tool

The database is the tricky part of a domain change, because the old address is stored in thousands of places. These five steps cover it.

  1. 1

    Back up

    Download a full backup of files and database, and keep it untouched until the new site works.

  2. 2

    Export the database

    phpMyAdmin (Export, SQL, UTF-8), WP-CLI "wp db export" or your host's backup tool.

  3. 3

    Replace the address here

    Add every version of the old address (http, https, www) as its own pair and download the new file.

  4. 4

    Import on the new site

    Import the new SQL file into the new database and update the database details in wp-config.php.

  5. 5

    Clean up

    Log in, save Settings > Permalinks once, clear every cache and check images, menus and forms.

Moving a whole site? Use a migration tool

Editing SQL files by hand is fine once. For regular moves between staging and live, a migration plugin copies the files and database and rewrites the addresses for you. See our guides on pushing staging to live and the best backup and migration plugins.

Revertix plugin

Test updates on a staging copy first

Revertix makes a staging copy of your site in a few clicks, takes a backup before every change and rolls back when an update breaks something. Free, with a PRO plan.

See Revertix
Website fixes

Something already broke?

White screen, critical error or a checkout that stopped working after an update. We find the cause and fix it.

Get help now

FAQ