Formatting Tools

Remove Prefix and Suffix

Strip matching wrappers from each lineβ€”undo bullet markers, JSON quotes, or bracketed IDs without regex gymnastics.

Remove Prefix and Suffix

Set patterns to remove or pick a preset β€” output updates instantly.

Live

Presets

Apply to
Matching
Output
0 Input lines
0 Lines changed
0 Prefixes removed
0 Suffixes removed
0 Unmatched lines
0 Chars removed
Wrapped lines to strip
Stripped result

Enter prefix/suffix patterns to strip from each line.

Your text stays in your browser β€” nothing is uploaded.

Example

Markdown bullets

- apple
- banana
apple
banana

CSV quotes

"apple"
"banana"
apple
banana

HTML list items

<li>apple</li>
<li>banana</li>
apple
banana

SQL values

('apple')
('banana')
apple
banana

Remove Prefix and Suffix Modes

Remove prefix only

Leave suffix empty to strip leading markers like bullets or paths.

Remove suffix only

Leave prefix empty to strip trailing text like file extensions.

Remove both

Strip matching prefix and suffix from each line independently.

Case-sensitive matching

Toggle when wrapper capitalization must match exactly.

Trim before matching

Strip whitespace before testing prefix and suffix patterns.

Remove repeated wrappers

Loop until no more matching prefix or suffix remains.

Skip unmatched lines

Lines without a match pass through unchanged in normal output.

Common Uses

Remove Markdown bullets

Strip - from pasted outline rows.

Strip quotes from CSV

Remove double quotes from imported column values.

Remove HTML list tags

Unwrap <li> elements from markup snippets.

Clean SQL values

Strip ('value') wrappers from query lists.

Remove path prefixes

Drop leading / from URL or slug lists.

Clean copied lists

Normalize mixed-format pasted rows in one pass.

Before and After Examples

ModeBeforeAfter
Bullet prefix- appleapple
Quotes"apple"apple
Parentheses(apple)apple
Brackets[apple]apple
HTML li<li>apple</li>apple
SQL value('apple')apple
URL path/aboutabout
File extensionreport.txtreport

Add vs Remove Prefix and Suffix

TaskBest tool
Add bulletsAdd Prefix and Suffix
Remove bulletsRemove Prefix and Suffix
Add quotesAdd Prefix and Suffix
Remove quotesRemove Prefix and Suffix
Wrap HTML list itemsAdd Prefix and Suffix
Strip HTML list itemsRemove Prefix and Suffix

Why Use Remove Prefix and Suffix?

Cleaning Markdown lists

Remove bullets such as -, *, or numbered prefixes.

CSV cleanup

Strip quotes around imported spreadsheet values.

SQL cleanup

Convert ('apple') into apple.

HTML cleanup

Convert <li>apple</li> into apple.

URL path cleanup

Convert /about into about.

API/log cleanup

Remove repeated wrappers from exported arrays, logs, and responses.

Wrapper Types Explained

Quotes

"apple" apple

Single quotes

'apple' apple

Parentheses

(apple) apple

Brackets

[apple] apple

HTML list tags

<li>apple</li> apple

SQL values

('apple') apple

URL paths

/about about

File extensions

report.txt report

Large Examples

Markdown bullets

Before

- apple
- banana
- cherry

After

apple
banana
cherry

CSV quotes

Before

"apple"
"banana"
"cherry"

After

apple
banana
cherry

HTML list

Before

<li>apple</li>
<li>banana</li>

After

apple
banana

SQL values

Before

('apple')
('banana')

After

apple
banana

Popular Workflows

Notes and Limitations

Frequently Asked Questions

Can I remove only a prefix?

Yes. Leave the suffix field empty and matching leading text is stripped from each line.

Can I remove only a suffix?

Yes. Leave the prefix field empty β€” useful for file extensions like .txt.

Must both prefix and suffix match?

By default each side is removed independently. Enable Both must match to require both patterns before stripping.

What happens to lines that do not match?

Unmatched lines pass through unchanged. Use preview unmatched lines to show only those rows.

Can matching be case-sensitive?

Yes. Toggle case sensitive matching when wrapper capitalization must match exactly.

Can I remove quotes from CSV values?

Yes. Use the CSV quotes preset or set prefix and suffix to " with both must match enabled.

Can I remove Markdown bullets?

Yes. Use the Markdown bullets preset or set prefix to - .

Can I remove HTML list tags?

Yes. Use the HTML li preset with prefix <li> and suffix </li>.

Can I remove repeated wrappers?

Yes. Enable remove repeated wrappers to loop until no matching prefix or suffix remains.

Can I remove only the first prefix?

Yes. Set the prefix field and leave suffix empty β€” only the leading match is stripped once per line unless repeated removal is enabled.

Can I remove file extensions?

Yes. Leave prefix empty and set suffix to .txt, .csv, or any extension pattern.

Can I remove URL paths?

Yes. Use the URL path preset or set prefix to / to strip leading slashes from slug lists.

Can I remove brackets and quotes together?

Yes. Set matching prefix and suffix β€” for example " and ", or [ and ] β€” with both must match if needed.

Does it work with multiline text?

Yes. Each line is processed independently, so multiline pasted lists strip wrappers row by row.

Will unmatched lines stay unchanged?

Yes. Lines that do not match your prefix or suffix patterns are left as-is in the output.

Is my text uploaded?

No. All stripping runs locally in your browser β€” your text never leaves your device.