Two super easy ways to find and replace text on your WordPress site. Read more on the techniques now.
Need to find and replace text across your entire WordPress site? Whether you're rebranding, fixing a typo that appears everywhere, or updating outdated information, here are two easy methods.
Method 1: Using a Plugin
The easiest way for most users is to install a find and replace plugin. "Better Search Replace" is a popular free option that works well.
- Install and activate the plugin
- Go to Tools > Better Search Replace
- Enter the text you want to find
- Enter the replacement text
- Select the database tables to search
- Run the search (use dry run first to preview changes)
Method 2: Direct Database Query
For more advanced users, you can run a SQL query directly in phpMyAdmin. This is faster but riskier—always backup your database first!
UPDATE wp_posts SET post_content = REPLACE(post_content, 'old text', 'new text');
Important Warnings
- Always backup your database before making changes
- Test on a staging site first if possible
- Be careful with serialized data in the options table


