How to Remove Brackets from Text Online
If you need to know how to remove brackets from text online, the answer takes seconds: paste your text into a free browser-based text tool, pick whether to delete just the brackets or the words inside them too, and copy the result — nothing to install, and your text never leaves your own computer.
The catch: “brackets” covers four different characters, and deleting the wrong pair can take a link or a line of code with it. This guide covers the modes first, then the fastest method for each, so you pick once and get it right.
Key takeaways
- Fastest method: a free browser text tool removes brackets in seconds — no upload, nothing to install.
- Decide the mode first: delete the brackets only, or the brackets and the words inside them — most mistakes come from picking the wrong one.
- Brackets come in four types: round ( ), square [ ], curly { }, and angle < > — each needs its own treatment.
- Protect code, Markdown links, citations, and URLs before you strip anything — those brackets are doing real work.
- Simple find-and-replace cannot handle nested brackets — it stops at the first closing bracket.
- Always tidy up afterwards: removal leaves double spaces behind, so collapse them as a final step.
What counts as a bracket
Be precise about which characters you are dealing with — the tools treat them differently. There are four types:
| Type | Marks | Seen in |
|---|---|---|
| Round brackets (parentheses) | ( ) | Asides, acronyms — “World Health Organization (WHO)” |
| Square brackets | [ ] | Citations [1], insertions, Markdown links |
| Curly braces | { } | Code blocks, placeholders like {name}, sets |
| Angle brackets | < > | HTML tags, placeholders like <your name>, maths |
One naming trap: in British English, “brackets” usually means round brackets ( ); in American English, it usually means square brackets [ ], with round brackets called parentheses. A tool labelled “remove brackets” might therefore strip only one type — check what it removes before running a long document through it.
Watch out for lookalikes: full-width brackets ()[]{} common in East Asian text, and the odd shapes that appear when text is pasted from a PDF. If brackets survive a removal pass, they may be a different Unicode character that only looks identical — use a tool that lists the exact characters it removes.
Choose the right mode first
Every bracket-removal job is one of the modes below — pick the mode first.
| Mode | Result | Example | Use when |
|---|---|---|---|
| Remove brackets only, keep the words inside | ( ) [ ] { } < > disappear; the text stays | “The meeting (Tuesday) went well” → “The meeting Tuesday went well” | The words matter; only the punctuation is in the way |
| Remove brackets and everything inside them | Brackets and contents deleted together | “The meeting (Tuesday) went well” → “The meeting went well” | Asides, stage directions, unwanted citations |
| Remove one type only | Only one type — ( ), [ ], { }, or < > — is touched | “See [1] and (note)” → “See and (note)” | One type is clutter; the others carry meaning |
| Replace brackets with spaces | Each bracket becomes a space | “word[tag]word” → “word tag word” | Words would otherwise run together |
| Replace brackets with another character | Brackets become commas, dashes, or line breaks | “(apples) (pears)” → “apples, pears” | Rebuilding a list from bracketed items |
| Keep only the bracketed content | Everything outside the brackets goes | “Buy [milk] and [bread]” → “milk, bread” | Extracting tags, citations, or placeholders |
| Remove unmatched brackets only | Lone brackets deleted; matched pairs stay | “Hello) world (again” → “Hello world again” | Fixing broken pastes; correct pairs stay |
If you are unsure which mode you need, try it on a copy of a few lines first — bracket removal is a one-way edit, and once the contents are gone, the only way back is undo.
The fastest way: remove brackets in the browser
For most people, the browser method is the whole job. A free online text tool runs entirely on your own computer: paste the text, the tool changes it in the page, nothing is uploaded. That matters for a work draft or client document — anything you would not want on someone else’s machine.
The steps are the same on almost every tool:
- Paste your text into the input box.
- Choose which types to remove — round, square, curly, angle, or all four.
- Choose the mode: brackets only, or brackets and their contents.
- Run it, check a few lines, then copy the cleaned text.
Two details decide whether the result is clean or messy. First, check whether the tool collapses the double spaces left behind — “The meeting went well” is the classic leftover, and a good tool fixes it in the same pass. Second, watch out for tools that only handle round brackets and call them “brackets”: with square brackets in your text, you need one that lists all four types, or you run the job twice.
Remove brackets in Word, Google Docs, and Excel
If the text already lives in a document or spreadsheet, Find & Replace does the job — Word has wildcards, Google Docs uses regular expressions, Excel uses formulas.
Microsoft Word
For brackets only, plain Find & Replace is enough: search for (, replace with nothing, then repeat for ), [, ], {, }, <, and >. Slow, but it cannot go wrong — each character is removed alone.
To remove brackets and their contents, turn on “Use wildcards” (More > Use wildcards) and search for \(*\) — Word deletes the whole match. For square brackets use \[*\]; the backslashes matter — in wildcard mode a bare [ starts a character set, not a literal bracket. Run it twice for nested brackets — one pass only removes the innermost pair.
Google Docs
Open Edit > Find and replace, tick “Match using regular expressions”, and search for [()\[\]{}<>] to delete every bracket character and keep the words. For brackets and contents, use \([^)]*\) round, \[[^\]]*\] square, \{[^}]*\} curly — one pattern per type, run separately. Docs replaces across the whole document in one click — work on a copy first.
Excel and Google Sheets
In a spreadsheet, SUBSTITUTE is the cleanest route — it leaves the original cell untouched. To strip round brackets from cell A1, use =SUBSTITUTE(SUBSTITUTE(A1,"(",""),")",""), nesting further calls for each extra bracket. For brackets and their contents, a formula alone is not enough: copy the column into a text tool, clean it there, and paste it back as values.
Remove brackets in Notepad++ and VS Code
Text editors suit code, log files, and documents too large for a browser tool. Notepad++ and VS Code both have a regex mode in Find & Replace (Ctrl+H), and the same patterns work in both.
To remove every bracket character and keep the words inside, search for:
[()\[\]{}<>]
and replace with nothing. That pattern is a character class — a set of characters, any one of which counts as a match. The square brackets need backslashes, because in regular expressions [ and ] define a character class in the first place. MDN puts it plainly: [xyz] “matches any one of the enclosed characters” — a literal square bracket must be escaped, or the engine reads it as syntax.
To remove brackets and their contents, one pattern per type:
\([^)]*\) round brackets and contents
\[[^\]]*\] square brackets and contents
\{[^}]*\} curly braces and contents
<[^>]*> angle brackets and contents
Each pattern means an opening bracket, any characters except the closing bracket, then the closing bracket. The [^)] part is what makes it work — it stops at the first closing bracket. Use .* instead and the pattern is greedy: \(.*\) on “(apples) and (pears)” matches from the first ( to the last ) and deletes everything between them.
Python and JavaScript one-liners
If you clean text regularly, a one-liner beats opening a tool every time — it runs locally, so the text never leaves your machine.
Python, brackets only:
import re
clean = re.sub(r'[()\[\]{}<>]', '', text)
Python, round brackets and their contents:
clean = re.sub(r'\([^)]*\)', '', text)
JavaScript, brackets only:
const clean = text.replace(/[()\[\]{}<>]/g, '');
JavaScript, square brackets and their contents:
const clean = text.replace(/\[[^\]]*\]/g, '');
The g flag in JavaScript and re.sub in Python both replace every match, not just the first — without it, only the first bracket is removed, the most common reason a one-liner appears to “not work”. For all four types with contents removed, run the four patterns in sequence; no single pattern handles nested brackets.
Brackets you should keep
Not every bracket is clutter — some do structural work:
- Code. Square brackets index arrays (
items[0]), round brackets call functions (print(x)), curly braces mark blocks and objects, angle brackets appear in generics and HTML tags. Removing them breaks code — clean only the comments, never the code itself. - Markdown links. A link written as
[label](https://example.com)needs both its square and round brackets. Strip them and it becomes plain text with a bare URL next to it — the same goes for reference-style links and image embeds. - Citations. Academic writing uses [1], [2], [Smith 2020] as references. Delete them and the text still reads fine, but the reader can no longer tell where a claim came from, and renumbering by hand is miserable. Keep a version with the citations intact.
- URLs. IPv6 addresses sit inside square brackets, as in
http://[::1]:8080/, and some URLs contain encoded brackets (%5Band%5D). To strip web addresses, use a dedicated step for removing URLs — not a general bracket pass. - Maths and emoticons. Expressions like (2 + 3) × 4 and {x | x > 0} change meaning without their brackets, and a smiley like 🙂 loses its nose.
If you cannot tell what a bracket is doing, do not remove it in a bulk pass — take it out by hand, or leave it alone.
Nested and unmatched brackets
Nested brackets — like “the report (see appendix (page 12))” — are where simple tools fail. A pattern stopping at the first closing bracket removes “(see appendix (page 12)” and leaves a stray “)” behind; one running to the last removes too much. Regular expressions cannot count depth, so they cannot match balanced nesting.
The fix is to repeat the removal until nothing changes: run the pattern, run it again on the result, until a pass removes nothing. Each pass strips the innermost pair. Two or three passes handle almost every real document; if you need more, the text has a genuinely broken bracket somewhere.
Unmatched brackets are a different problem. A lone “(” with no partner usually comes from a bad paste, a truncated line, or an emoticon cut in half. Most tools have no “remove unmatched only” mode: count the opening and closing marks for each type and delete the ones without a partner. VS Code highlights the matching bracket when your cursor sits on one — any bracket without a highlight is the odd one out.
Clean up afterwards
Removal almost always leaves traces. The most common is the double space: “The meeting (Tuesday) went well” becomes “The meeting went well” once the aside is deleted. Collapse the double spaces afterwards, or use a tool that does it in the same step.
The second trace is the dangling word. Remove “(Tuesday)” from “The meeting (Tuesday) is at noon” and you get a fine sentence — but sometimes the bracketed words were the only thing making it grammatical. Read the cleaned text once — a thirty-second read catches what no automated check will.
Finally, check for a space before punctuation — “well .” instead of “well.” — which happens when a bracketed aside sat at the end of a sentence. Find-and-replace ” .” with “.” to clear it.
Common mistakes
- Removing brackets and contents when you only wanted the brackets gone — the number-one error. If the words inside matter, use the brackets-only mode.
- Using a greedy pattern:
\(.*\)eats everything between the first opening and last closing bracket on a line. Use[^)]*instead. - Forgetting that [ and ] are special in regex: an unescaped
[starts a character class. Escape it as\[or put it inside a class like[\[\]]. - Stripping brackets from code, links, and citations in a bulk pass — protect those first, or clean them by hand.
- Running the job on the only copy. Work on a copy — undo has limits, and a bulk replacement is exactly the edit you discover was wrong an hour later.
Frequently asked questions
How do I remove brackets but keep the text inside?
Use the brackets-only mode: delete the bracket characters, leave the words. In a browser tool, choose “remove brackets only”; in an editor, search for [()\[\]{}<>] and replace with nothing. “The meeting (Tuesday) went well” becomes “The meeting Tuesday went well”.
How do I remove everything inside brackets?
Use one pattern per type: \([^)]*\) round, \[[^\]]*\] square, \{[^}]*\} curly, <[^>]*> angle. In Word, turn on wildcards and use \(*\). Run the pattern twice for nested brackets — each pass only removes the innermost pair.
Can I remove only square brackets and leave parentheses alone?
Yes — the “one type only” mode. In a browser tool, tick only square brackets. In an editor, search for [\[\]] to remove just the brackets, or \[[^\]]*\] to remove the contents too. Round brackets, curly braces, and angle brackets stay untouched — the right choice for stripping citations [1] while keeping asides.
Why does my regex remove too much text?
Because the pattern is greedy: \(.*\) matches from the first ( to the last ) on the line, swallowing everything between them. Replace .* with a negated class — [^)]* — which stops at the first closing bracket. With nested brackets, repeat the replacement until a pass changes nothing.
How do I remove brackets in Word without deleting the words?
Use plain Find & Replace without wildcards: search for (, replace with nothing, then repeat for ), [, ], {, }, <, and >. Each character is removed on its own, so the words stay put. Only turn on wildcards when you want the contents gone too — that mode deletes words, and it is the one people switch on by accident.
The short version
Removing brackets from text online takes two minutes once you know which mode you need: brackets only, or brackets and their contents. Pick the mode, pick the types, run it in the browser, tidy the double spaces afterwards. Keep the brackets doing real work — in code, links, citations, and URLs — and when brackets are nested, repeat the replacement until a pass changes nothing. To strip a whole document rather than just brackets, you can remove all punctuation at once, and the guide to removing quotation marks covers that case too.
