Better Find and Replace


This plugin automatically find a specific word and will replace it with your own word. The changes will be automatically done before the website renders to the browser’s. It doesn’t affect any other plugins files or your database.

Easily Find and replace text, HTML code, Media / Image’s URL, Footer credits or anything in the website without touching the database. 

Also, It has powerful features which you can use to search and replace permanently in Database. You will be able to find and replace
in both keys or values of serialized data. Also, you can remove any item from your serialized data by it’s key in your database.

Key Features

  • Easy to use and user-friendly options
  • Search and replace any text
  • Search and replace text loaded by Ajax / jQuery
  • Find and replace URLs
  • Search and replace images, attchment URLs etc..
  • Create word masking with find-replace over the whole website
  • Create find-replace temp rules without touching database.
  • Remove or change footer credit without touching database or HTML code
  • Replace anything in HTML code
  • Replace images in real-time rendering
  • Mask bad words posted in comments
  • Change different language’s content to your own language
  • RegEx supported
  • Replace any HTML tag or attribute
  • Lighting first find-replacement in Database table’s ( posts, postmeta, options )
  • Select a specific database table to replace content
  • Dry Run to see what will be change on Database
  • Search and replace Whole Words Only in Database
  • Ultimate powerful options for Search and replace Serialized Data in Database
  • Remove any item from Serialized Data in Database

How to replace in DB?

  • First create a report by selecting dry run from bottom of the setting section
  • Report will appear in a modal window. You can check there which row / data is going to be replaced.
  • On the report’s, if you think the replacement is perfect which you want, then close the report window and un-check the dry run and click the Find & Replace button.
  • Attention: Please check the report and make sure which data you are going to replace. It’s very important because once you replace it in the Database you can’t un-done it.
  • important: So, before replacing in the database create a dry run report and see if it’s perfect or not. If it’s wrong change the find keyword then try again the same procedure until you see it’s perfect on the report.

Pro Features

  • Database Replacement Features:

    • Powerful search and replace in database
    • Ultimate solution for search & replace in serialized data & remove item
    • Automatic backup of the search and replacement data
    • Ultimate easy solution for restore data what you have replaced by mistake
    • Ability to check & replace each item separately which going to be replaced in the database
    • Bulk Replacement on report’s page, generate by dry run option
    • All tables in database
    • Search and replace Unicode Characters UTF-8 ( e.g: U+0026, REČA ) in Database
    • Additional filterting options in default / custom URLs
    • Filter new comments before inserting into Database
    • Filter new post before inserting into Database (Good for auto post generation website)
  • Real-Time Rendering Features:

    • RegEx supported
    • Advance Regex – Powerful code blocks / multilines find and replace in real-time (masking) rendering
    • Advance Regex – Any (CSS / JS / HTML) code Block find and replacement in real-time (masking) rendering
    • Masking on Shortcode
    • Advance filtering options :-
      • Case insensitive – search and replace case sensitive or insensitive
      • Whole Word – search and replace whole word
      • Unicode – search and replace Unicode Characters
      • Skip posts / page / custom taxonomies etc.. urls
      • Skip CSS – External, Internal, Inline
      • Skip JavaScript – External, Internal
      • Skip pages – if you don’t want to apply rules on any specific page
      • Skip posts – if you don’t want to apply rules on any specific posts
      • Bypass rule – keep texts unchanged on specific area with special pattern
      • Bypass rule – keep base links / urls ( post, pages, custom taxonomies etc..) unchanged where find word exists in that URL.

Advance Regex – Code blocks / multilines find and replacement example – (Real-time Rendering)

Find code block and replace with your own or keep blank *replament field to remove code block. Let consider the following CSS code block for replace. Put following
code block in find field*

<style media="screen">
    html { margin-top: 32px !important; }
    * html body { margin-top: 32px !important; }
    @media screen and ( max-width: 782px ) {
        html { margin-top: 46px !important; }
        * html body { margin-top: 46px !important; }

Then put following code block in *Replace field to replace the above code block*

.site-title a{color: red;}

Join the elite web professionals who enjoy Better Find And Replace Pro!

➡️ Basic Documentation To Get Started

  • Setup Video Guide – How to install and setup search and replace rules

👉 Real-time search and replace

👉 Search and replace in Database

Forum and Feature Request

For Quick Support, feature request and bug reporting

Visit our forum to share your experience or request features

As it’s open source, check our github development Status


  • Add Find Rule - Plain Text
  • Add Find Rule - RegEx
  • Add Find Rule - jQuery / Ajax Text
  • List of All Masking Rules
  • URLs replacement in Database
  • Media replacement in Database
  • Dry run report
  • List of All Masking Rules with pro features


  1. Upload the real-time-auto-find-and-replace folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress


FR - Il fait très bien se que l'on attend de lui! EN - He does very well what is expected of him! FRANCAIS Better Find and Replace fait très bien le boulot! Je ne mets jamais 5 étoiles, rien n’est parfait dans ce monde et tout peut-être amélioré un jour ou l’autre. Beau travail! – ANGLAIS Better Find and Replace does the job very well! I never rate 5 stars, nothing is perfect in this world and everything can be improved one day or another. Great job!


“Better Find and Replace” 是开源软件。 以下人员对此插件做出了贡献。



Version: 1.3.2

  • Feat: Export / Import rules – (pro)
  • Feat: Export / Import Database replacement log – (pro)

Version: 1.3.1

  • Improvement: Speed up on Database replacement section
  • Improvement: serialize data replacement algorithm
  • Fix: PHP warnings

Version: 1.3.0

  • Improvement: string replacemnt
  • Improvement: loading time

Version: 1.2.9

  • Fix: Security issues

Version: 1.2.8

  • Improvement: WordPress 5.8 compatible
  • Improvement: Database search and replacement

Version: 1.2.7

  • Improvement: Database search and replacement

Version: 1.2.6

  • Feat: Masking rule on Shortcode (pro)
  • Feat: Masking on Old Comments – (pro)
  • Feat: Skip posts – if you don’t want to apply rules on any specific posts – (pro)
  • Feat: Automatically filter New Posts before inserting into Database (good for auto posting websites) – (pro)
  • Feat: Automatically filter New Comments before inserting into Database – (pro)

Version: 1.2.5

  • Fix: Database search replace: PHP error: Cannot access property started with ‘\0’

Version: 1.2.4

  • Fix: WP_Scripts::localize PHP Notice

Version: 1.2.3

  • Improvement: Database find and replacement
  • Improvement: WordPress 5.7 compatible

Version: 1.2.2

  • Bug Fix: bug fixed

Version: 1.2.1

  • Feat: Skip pages ( if you don’t want to apply rules on any specific pages ) – pro
  • Improvement: Real-time find and replacement

Version: 1.2.0

  • Bug Fix: Replacement bug fixed
  • Improvement: Improved database search and replace

Version: 1.1.9

  • Improvement: Ajax search & replace
  • Drop: Droped ajax search & replace by tag selector

Version: 1.1.8

  • Improvement: Database search and replacement

Version: 1.1.7

  • Feat: Serialized data supported ( find & replace or remove item by it’s key )
  • Feat: Automatic backup options – pro
  • Feat: Restore data – pro

Version: 1.1.6

  • Improvement: Database search and replacement
  • Improvement: Special characters on Database search and replacement

Version: 1.1.5

  • Improvement: Ajax find and replacement
  • Feat: Advance filters for CSS rule (pro)
  • Feat: Advance filters for JavaScript (pro)

Version: 1.1.4

  • Improvement: Real-time find and replacement
  • Feat: Real-time find and replacement – advance filtering( skip base urls) (pro)

Version: 1.1.3

  • Improvement: Real-time find and replacement
  • Feat: Real-time find and replacement – advance filtering (pro)
  • Feat: Real-time find and replacement – bypass rule (pro)

Version: 1.1.2

  • Improvement: DB search and replacement

Version: 1.1.1

  • Improvement: DB search and replacement multiple search to single downgraded

Version: 1.1.0

  • Improvement: RegEx improved for real-time find and replace
  • Feat: Find and replace code blocks – pro

Version: 1.0.9

  • Improvement: Database Search and Replacement
  • Feat: Whole Word Only – search on database
  • Feat: Search Unicode Characters in DB – pro

Version: 1.0.8

  • Improvement: Multiple selection

Version: 1.0.7

  • Fix: Notification issues

Version: 1.0.6

  • Feat: Dry run on database search
  • Feat: Reports on dry run search
  • Feat: Case-insensitive search in database

Version: 1.0.5

  • Change: Plugin name changed – Real Time Auto Find and Replace to Better Find and Replace
  • Feat: jQuery / Ajax loaded text replacement
  • Feat: Database table selection / filter
  • Feat: URLs replacement with filtering options

Version: 1.0.4

  • Fix: Notification issues

Version: 1.0.3

  • Fet: RegEx Supoorted

Version: 1.0.2

  • Fet: Replace in Database
  • Improvement: Find-Replace speed up
  • Brand new user-interface

Version: 1.0.1

  • Improvement: Imporved some codings
  • Fix a bug.

Version: 1.0.0

  • Fix a bug.

Version: 0.5

  • Initial release.