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 “\)”).
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.