Replace parentheses with curly brackets

Please log in or register to do it.

This tool replaces parentheses “( )” with curly braces “{ }” in various modes. You can replace all parentheses, only opening or only closing, remove them entirely, only replace if inside is alphanumeric, or skip escaped parentheses (like “\(” and “\)”).

Processing Modes:


Every “(” becomes “{” and every “)” becomes “}”.

Leaves closing “)” alone.

Keeps “(” as is, but “)” → “}”.

Strips “(” and “)” from the text, leaving what’s inside.

e.g. “(abc)” → “{abc}”, but leaves “( )” or “(#@)” alone.

Leaves “\(” or “\)” as is, only replaces normal parentheses.

Examples:

Replace All Parentheses

Every “(” → “{” and every “)” → “}”.

Before:
function test() ( return ( x: 10 ); )
After:
function test() { return { x: 10 }; }

Replace Only Opening “(”

Leaves “)” unchanged.

Before:
Hello (name), how are )?
After:
Hello {name), how are )?

Replace Only Closing “)”

Leaves “(” alone, but “)” → “}”.

Before:
Hello (user), press ) to exit.
After:
Hello (user}, press } to exit.

Remove Parentheses Entirely

Erases both “(” and “)”.

Before:
(Hello), (World)!
After:
Hello, World!

Replace Only if Alphanumeric Inside

“(abc)” → “{abc}” but “(#@)” stays.

Before:
This is (abc), but not ( ) or (#@).
After:
This is {abc}, but not ( ) or (#@).

Skip Escaped Parentheses

Leaves “\(” or “\)” as is, only changes plain ones.

Before:
LaTeX says \(don't replace me\), but (replace me) is fine.
After:
LaTeX says \(don't replace me\), but {replace me} is fine.
Replace HTML <b> tags with <strong> tags
Replace square brackets with parentheses

Your email address will not be published. Required fields are marked *