πŸ”Ž
πŸ’»

Find and Replace in Code

Rename variables or rewrite patterns across a snippet quickly.

Nid oes angen mewngofnodi
Enter a search term to begin

Result

πŸ’‘ In regex mode, use capture groups in Find like (\d{4})-(\d{2}) and reference them in Replace with $1, $2 β€” great for reformatting dates, names, or IDs in bulk.

Code tips

πŸ’»

Enable case-sensitive matching (leave "case-insensitive" off) so myVar and MyVar stay distinct.

πŸ’‘

Whole-word matching avoids partial hits when renaming short identifiers like id or x.

πŸ”’

Runs entirely in your browser β€” paste proprietary code without it leaving your device.

Sut Mae'n Gweithio

1
Ewch i mewn
Enter your data into the tool above. Everything stays local to your browser.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin