{
    "title": "Better Search Replace",
    "seo_title": "Better Search Replace: review, settings and limits",
    "h1": "Better Search Replace",
    "description": "Better Search Replace: strengths, limits, safe settings to change domains without breaking serialized data, and patched vulnerabilities.",
    "lead": "Better Search Replace replaces text across the whole WordPress database, serialized data included, typically after a domain change. Our take on what it does well, its limits, the safe settings for a migration and the vulnerabilities that were patched.",
    "language": "en",
    "locale": "en-US",
    "type": "plugin-sheet",
    "url": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/",
    "canonical": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/",
    "markdown": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/index.md",
    "json": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/index.json",
    "published": "2026-11-04T08:00:00+00:00",
    "modified": "2026-11-22T12:20:49+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/",
            "markdown": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/features/camouflaged-plugins/better-search-replace/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/better-search-replace/",
            "markdown": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/better-search-replace/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/better-search-replace/",
            "markdown": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/better-search-replace/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/better-search-replace/",
            "markdown": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/better-search-replace/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/better-search-replace/",
            "markdown": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/better-search-replace/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/better-search-replace/",
            "markdown": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/better-search-replace/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Better Search Replace",
            "url": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/better-search-replace/",
            "markdown": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/better-search-replace/index.md",
            "json": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/better-search-replace/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "Better Search Replace"
        },
        {
            "level": 2,
            "text": "What Better Search Replace does to your database"
        },
        {
            "level": 2,
            "text": "When Better Search Replace is the right tool"
        },
        {
            "level": 2,
            "text": "Better Search Replace strengths and limitations"
        },
        {
            "level": 3,
            "text": "Strengths"
        },
        {
            "level": 3,
            "text": "Limitations"
        },
        {
            "level": 2,
            "text": "The Better Search Replace settings we recommend"
        },
        {
            "level": 2,
            "text": "Better Search Replace security: a tool to remove after use"
        },
        {
            "level": 2,
            "text": "Better Search Replace frequently asked questions",
            "id": "faq"
        }
    ],
    "body": "## The essentials\n\n- Best for changing domains or moving to HTTPS without breaking serialized data.\n- Main caveat: no undo and no view of exact changes, so a backup beforehand is a must.\n- Free; the suggested upgrade is WP Migrate, at $99 per year for one site at the regular price.\n\n## What Better Search Replace does to your database\n\nBetter Search Replace adds a page under Tools > Better Search Replace. You enter the text to find, the replacement text and the tables to process, and the plugin walks through every row of those tables, replacing the text wherever it appears. The classic use case: after a domain change or a move to HTTPS, swapping `http://old-domain.com` for `https://new-domain.com` across posts, settings and metadata.\n\nWhat sets it apart from a hand-written SQL query is serialized data. WordPress and many plugins (widgets, theme options, page builders) store serialized PHP arrays, where each string is prefixed with its length. A raw `REPLACE` query changes the text without fixing that length and leaves the value unreadable; Better Search Replace unserializes the value, makes the replacement, then serializes it again (see our definition of [deserialization](https://www.wp-feint.com/glossary/insecure-deserialization/)). A \"Run as dry run\" mode, checked by default, counts the affected cells without writing anything.\n\nThe plugin was created by Matt Shaw, acquired by Delicious Brains in 2016, and is now published on wordpress.org by WP Engine. Since version 1.4.9 it gets its updates from WP Engine's servers. The free version is complete for search and replace; the official site still describes a Pro version but lists no price, and the upgrade button inside the plugin points to WP Migrate, a paid migration tool from the same company.\n\n![Diagram: Better Search Replace works on wordpress, database and files, external services. Public traces: no known public trace.](https://www.wp-feint.com/media/wpm-sheets/better-search-replace/diagram-en.svg?v=accb20ed)\n\n## When Better Search Replace is the right tool\n\nBetter Search Replace fixes a string repeated across the whole database, with no server access needed:\n\n- **Domain changes and moves to a new host**: once the database is imported, you replace the old address with the new one.\n- **Switching to HTTPS**: replacing `http://` addresses clears most mixed content warnings (see our guide to HTTPS on WordPress).\n- **Multisite**: a subsite administrator only sees that subsite's tables; a super admin can process the whole network from the main site.\n\nIt is the wrong choice for moving a whole site: the plugin copies neither files nor the database, it only edits the database in place. For the transfer itself, a plugin like [Duplicator](https://www.wp-feint.com/features/camouflaged-plugins/duplicator/) or All-in-One WP Migration also handles the address replacement. If you have SSH access, the `wp search-replace` command in [WP-CLI](https://www.wp-feint.com/glossary/wp-cli/) does the same job, serialized data included, with no plugin to install.\n\n## Better Search Replace strengths and limitations\n\n### Strengths\n\n- **Serialized data handled.** String lengths are recalculated, where a raw SQL query breaks widgets and options.\n- **Dry run by default.** The \"Run as dry run\" box is checked every time and shows how many cells would change, table by table.\n- **Precise table selection.** The list shows each table with its size, so you can limit the run to a few tables.\n- **Free and simple.** One page, three tabs, no account to create for the free version.\n\n### Limitations\n\n- **No undo.** The free version does not back up the database: a mistyped string rewrites thousands of rows, as the developer's own FAQ warns.\n- **Dry run without the details.** The dry run gives counts per table; seeing the exact changes requires the paid version.\n- **No regular expressions.** Searches match exact text, case-sensitive or not.\n- **PHP 8.1 and WordPress 6.2 minimum.** Since version 1.4.11, a host still on PHP 8.0 or older can no longer update the plugin.\n- **Unclear paid offer.** No public price for the Pro version; the suggested upgrade is WP Migrate, at $99 per year for one site at the regular price.\n\n## The Better Search Replace settings we recommend\n\nAfter a dry run, the form keeps your values but checks \"Run as dry run\" again: uncheck it only for the real run. First export the database with your usual backup tool (see our [3-2-1 backup strategy](https://www.wp-feint.com/wordpress-backups-3-2-1-strategy/)).\n\n| Setting | Recommended value | Why |\n| --- | --- | --- |\n| **Search for** and **Replace with**  Tools > Better Search Replace > Search/Replace | The full address, protocol included, with no trailing slash on either side | Searching for just \"old-domain\" would also hit email addresses and any text that mentions the name. |\n| **Select tables**  Same screen | All tables for a domain change, only the relevant tables for a targeted fix | An address missed in a plugin table leaves broken links; a text fix has no reason to touch settings. |\n| **Run as dry run**  Same screen, Additional Settings | Checked (default) for the first pass | The number of cells found reveals a string that is too broad before anything is written. |\n| **Case-Insensitive**  Same screen | Unchecked (default) | A case-sensitive search avoids replacing variants you did not plan for. |\n| **Replace GUIDs**  Same screen | Unchecked (default) | The GUID is a post's permanent identifier for RSS readers: changing it can make old posts show up as new. |\n| **Max Page Size**  Tools > Better Search Replace > Settings | 20,000 (default), lowered toward 5,000 if errors occur | The plugin itself says to lower this value if processing stops; slow shared hosting often needs it. |\n| **Who can use the tool**  `bsr_capability` filter (code) | Keep the `manage_options` capability | Only administrators should be able to rewrite the database; do not extend this access to other roles. |\n\n- Keep a dated database export from before the replacement, and check that it opens.\n- Run the dry run, then compare the number of cells found with what you expected before the real run.\n- After the real run, save Settings > Permalinks without changing anything and clear the site cache.\n- Check a few pages, a widget and the theme settings.\n- Deactivate and delete the plugin once the job is done.\n\n## Better Search Replace security: a tool to remove after use\n\nPublished vulnerabilities are few, but two of them hit the core of the plugin:\n\n- **CVE-2023-6933, fixed in 1.4.5**: PHP object injection. An object placed in the database without an account could be instantiated during a search and replace (CVSS 8.8). The plugin contained no usable gadget chain, but another plugin or theme could supply one (see our article on [PHP deserialization and object injection](https://www.wp-feint.com/php-deserialization-object-injection/)).\n- **CVE-2022-2593, fixed in 1.4.1**: [SQL injection](https://www.wp-feint.com/glossary/sql-injection/) through table names, limited to an administrator account.\n- **Version 1.4.11**: the changelog reports a fix for a possible SQL injection with multibyte character sets (GBK, Big5), by switching to prepared statements.\n\nThe most effective habit is simple: install the plugin for the migration, update it if it stays more than a few days, then delete it. Better Search Replace only runs in the admin and leaves no known trace in your public pages, so WP Feint has nothing to hide for it.\n\n## Better Search Replace frequently asked questions\n\n**Can Better Search Replace break my site?**\n\nYes, if the search string is too broad or mistyped: the replacement is permanent. Always back up the database and do a dry run before the real run.\n\n**Should I keep Better Search Replace installed after a migration?**\n\nNo. The plugin is only useful at the moment of the replacement; deleting it afterward removes a powerful tool from the admin and one more plugin to keep updated.\n\n**Why does the dry run find cells but not show the changes?**\n\nThe free version only reports the number of cells and changes per table. Viewing the exact changes is part of the paid offer.\n\n**Processing stops with an error. What should I do?**\n\nLower the Max Page Size in the Settings tab, then run it again. If the error persists, the Help tab provides a system info file you can send to your host.\n\n## Key facts\n\n- Category: Backup and site management\n- Vendor: WP Engine\n- Price: Free; no public price for Pro, suggested upgrade WP Migrate at $99 per year for one site\n- Active installations (wordpress.org): 1 000 000+\n- Version: 1.4.11\n- Official page: https://wordpress.org/plugins/better-search-replace/\n\n## What WP Feint hides\n\n- Handled by the free plugin Feint Security",
    "catalog": "better-search-replace",
    "essentials": [
        "Best for changing domains or moving to HTTPS without breaking serialized data.",
        "Main caveat: no undo and no view of exact changes, so a backup beforehand is a must.",
        "Free; the suggested upgrade is WP Migrate, at $99 per year for one site at the regular price."
    ],
    "format": "application/json"
}