WordPress Serialized Search and Replace Move domains without breaking data.
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
Back up
Download a full backup of files and database, and keep it untouched until the new site works.
- 2
Export the database
phpMyAdmin (Export, SQL, UTF-8), WP-CLI "wp db export" or your host's backup tool.
- 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
Import on the new site
Import the new SQL file into the new database and update the database details in wp-config.php.
- 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.
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 RevertixSomething already broke?
White screen, critical error or a checkout that stopped working after an update. We find the cause and fix it.
Get help nowFAQ
More free tools
WordPress Update Safety Check
Enter a site address and see what is visible from outside, with a risk score before you update.
Open toolWordPress Plugin Health Checker
Paste your plugin list and see which plugins are outdated, closed or untested with the latest WordPress.
Open toolWordPress PHP Compatibility Checker
Pick a PHP version and see which of your plugins require newer PHP or may block the upgrade.
Open toolWebsite Cost Calculator
How much does a website cost? Pick what you need and get a price range and timeline right away.
Open toolWordPress Plugin Development Cost Calculator
How much does a custom WordPress plugin cost? Pick the type, size and features and see a price range.
Open toolSaaS MVP Cost Calculator
Pick the features your SaaS needs and see what fits a fixed-price MVP and what to leave for phase two.
Open tool