Pick a folder, search its HTML, Markdown, config, and other text files, review the changes in each file, then save them in place. Back up the originals first if you want.
This tool runs entirely in your browser. What you enter is never sent anywhere.Your input is never sent anywhere.
DetailsHow Bulk Find and Replace Works on a Folder
Copyright years, old domain names, API URLs in config files: sometimes the same change has to be made in dozens of files. Opening each one by hand is slow, and it's easy to miss a file.
This tool opens a folder on your computer through your browser, searches every file with the extensions you pick, and shows the matches file by file. You uncheck anything you want to leave alone, then save the changes over the original files. There is nothing to install and nothing to upload.
It also handles file names. With one option turned on, the same search and replacement renames matching files, so you can update both the files and the links that point to them in a single pass.
Common Jobs for Multi-File Edits
Update a copyright year or phone number
Change © 2026 to © 2027 in the footer of every HTML page on a static site, or swap a phone number that appears on every page.
Move links to a new domain
Replace an old domain in Markdown posts and HTML pages. With regular expressions on, you can rewrite whole URL patterns, not just the host name.
Change config values
Update an API endpoint or version number across .json, .yml, and .env files. Select only those extensions to keep the search focused.
Standardize spelling in documentation
Make "e-mail" and "email", or "Javascript" and "JavaScript", consistent across a folder of docs before you hand it off.
Rename assets and fix their references
Turn on the file name option and replace old-logo with new-logo. Add png as an extension and old-logo.png is renamed, while references inside your selected HTML and CSS files are updated in the same run.
How to Edit Many Files at Once in 5 Steps
- Select a folder and allow access when your browser asks. Choose a subfolder if the browser refuses a top-level folder.
- Pick the file extensions to search, and leave Skip common folders on unless you need those folders. Change the encoding only if your files aren't UTF-8.
- Enter the text to find and its replacement, set the options you need, and click Search files.
- Review the matches in each file. Uncheck any file you don't want to change.
- Keep the backup option on, click Replace and save, and confirm. The files are overwritten.
Note: The tool doesn't remember your folder. If you reload or close the tab, select the folder again.
Before You Overwrite Your Files
- Works in desktop Chrome, Microsoft Edge, and other Chromium-based browsers. Safari and Firefox can't open folders this way.
- Only files with the extensions you selected are read. A file that isn't valid text in the chosen encoding is skipped and listed.
- Files with replaced text are saved as UTF-8 without a byte order mark. Files where only the name changes keep their original bytes.
- The backup folder is named _backup_ plus the date and time (UTC) and holds the original bytes of every file the tool changes. It is created inside the folder you selected, and later searches skip it.
- In regex mode, ^ and $ match at the start and end of each line, and $1 inserts a captured group. With regex off, your replacement is inserted exactly as typed.
- Match whole words only uses word boundaries, which work for letters, digits, and underscores. Search text that starts or ends with a symbol such as © may not match with this option on.
Single Text vs. Whole Folder: Which Tool to Use
The right tool depends on whether you are editing pasted text, files on disk, or a project open in your editor.
| Task | What you work on | Best fit |
|---|---|---|
| Replace text in a snippet you paste | One block of pasted text | An online text or regex replace tool |
| Replace text across many files | Files in a local folder | This tool |
| Rename files by replacing part of the name | File names | This tool (file name option) |
| Compare two versions of one file | Two files | A text diff tool |
| Edit a project you already have open | Your code editor | Your editor's find-in-files search |
This tool rewrites the text inside files and can rename any file. It does not edit the contents of images, PDFs, or other binary files.
Edit Local Files in the Browser Without Uploading
How the tool reaches your files, how it compares with a code editor, and what protects you from mistakes.
How a web page can edit files in place
The tool uses the File System Access API. Your browser asks you to pick a folder and allow read and write access, and the page can then open and save files in that folder. There is no upload and no download step, so the changed files stay where they are.
When to use this instead of your editor's find-in-files
If you already work in a code editor with project-wide search, that is often the quickest choice. This tool fits when you don't have the project open in an editor, when you are on a machine where you can't install software, or when you hand-edit a client's site files. It also puts a per-file preview, backups, and file renaming in one place.
What protects you from a bad replace
Nothing is written until you confirm. Before that, you can review every file's matches and uncheck files. If backups are on, the originals are copied first. A file that changed on disk after the search is skipped instead of overwritten, and renaming never replaces an existing file.
Which browsers can open folders
Folder access is available in desktop Chrome, Edge, and other Chromium-based browsers. Safari and Firefox don't support it, so open this page in a Chromium-based browser to use the tool.
Mistakes That Corrupt Files (and How to Avoid Them)
Running without a backup
You turn the backup option off, run a replace with the wrong settings, and the files are overwritten with no way back.
💡 See the solution▼
Special characters in regex mode
With regular expressions on, searching for example.com also matches exampleXcom, because the dot means any character.
💡 See the solution▼
A short word that matches longer words
Replacing cat with dog also changes category into dogegory, because the search finds the letters anywhere.
💡 See the solution▼
Reading a file with the wrong encoding
A UTF-8 file read as Windows-1252 shows é as é. If you save it, the garbled text is written into the file.
💡 See the solution▼
Searching huge folders
Selecting a project root with Skip common folders turned off pulls in folders like node_modules, which can hold tens of thousands of files and slow the page down.
💡 See the solution▼
Questions About Replacing Text in Folders
Q.Which browsers can find and replace text in a folder?
A. Desktop Chrome, Microsoft Edge, and other Chromium-based browsers. The tool uses the File System Access API to read and write your folders directly. Safari and Firefox don't support the folder picker it needs, so the tool shows a notice instead of the controls.
Q.Are my files uploaded anywhere?
A. No. The tool reads, searches, and writes the files inside your browser, and its code doesn't send file contents or folder names to a server. That makes it usable on private documents and unreleased source code.
Q.Can I undo a replace?
A. Only if the backup option was on, which is the default. Before saving, the tool creates a folder named _backup_ followed by the date and time (UTC) inside the folder you selected, and copies each original file into it byte for byte. Files in subfolders are saved there with / replaced by __ in the name. To undo, copy the originals back. Without a backup, files are overwritten and can't be restored.
Q.Can I use regular expressions and capture groups?
A. Yes. Turn on Use regular expressions, write the pattern in JavaScript syntax, and use $1, $2, and so on in the replacement to insert captured groups. In regex mode, ^ and $ match at the start and end of each line. With regex off, your search text and replacement are both treated literally, so characters such as . or $ need no escaping.
Q.What if my files aren't UTF-8?
A. Choose UTF-8, Windows-1252, UTF-16 LE, or UTF-16 BE before searching. A file that isn't valid in the chosen encoding is skipped and listed, so it isn't rewritten with broken characters. Files with replaced text are always saved as UTF-8 without a byte order mark, so the tool doubles as a quick way to convert encodings.
Q.Can it rename files too?
A. Yes. Turn on Also apply to file names. The same search, replacement, and options are applied to each file name, including the extension. Renames only apply to files with a selected extension, and a file doesn't have to be text: if it can't be read as text, its contents are copied unchanged. The tool never overwrites an existing file. If the new name is taken, that file is left as is and reported as failed. Links to renamed files are not updated unless you also replace the old name inside your text files in the same run.
Q.Which folders are skipped?
A. By default: node_modules, .git, .next, .nuxt, dist, build, coverage, vendor, __pycache__, .venv, and .vercel. Untick Skip common folders to include them. Folders whose names start with _backup_ are always skipped, so earlier backups are never edited. Every other subfolder is searched.
Q.What happens if a file changes after I search?
A. Before saving each file, the tool compares its last-modified time with the time it had during the search. If it changed, that file is left alone and marked as failed, so you can run the search again and review the new result.
Q.How big a folder can I use?
A. The tool loads every matching file into memory so it can show a preview, so speed and memory use depend on your computer and how many files match. For large folders, select fewer extensions or open a subfolder instead of the project root.
Your feedback
makes this tool better.
Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.