sed Command Builder & Tester
Build and test sed commands against sample text in the browser. A pure-JavaScript sed interpreter (no WASM, no network) supports substitute (s///), delete (d), print (p), insert (i), append (a), change (c), and next (n) commands with line addressing (single line, range, $, /regex/), BRE and ERE (-E) regex flavours, flags (g, i, p, N), -n suppress-auto-print, -i in-place preview, auto delimiter selection (/, |, #, ~, ^) when search/replace contains a slash, GNU-vs-BSD -i guidance, backreference helper (\1..\9 and &), and per-command plain-English explanation. Visual builder, reverse explainer, recipe library, sample-text presets, history (max 20), shareable URL. Preview only — never edits real files. 100% client-side.
Build and test sed commands against sample text in the browser. A pure-JavaScript sed interpreter (no WASM, no network) supports substitute (s///), delete (d), print (p), insert (i), append (a), change (c), and next (n) commands with line addressing (single line, range, $, /regex/), BRE and ERE (-E) regex flavours, flags (g, i, p, N), -n suppress-auto-print, -i in-place preview, auto delimiter selection (/, |, #, ~, ^) when search/replace contains a slash, GNU-vs-BSD -i guidance, backreference helper (\1..\9 and &), and per-command plain-English explanation. Visual builder, reverse explainer, recipe library, sample-text presets, history (max 20), shareable URL. Preview only — never edits real files. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.