Oh My Tools

C/C++ String Converter

Safely convert between plain text and C/C++ string literals in both directions.

Input → result
Text or C/C++ literal → escaped or restored result
Supported scope
Quotes, backslashes, line breaks, tabs, and optional printf percent escaping.
Where is my input processed?
Input and converted output stay in browser memory and are not stored.
What should I do if there is no result?
Fix the reported unmatched quote or unsupported backslash escape before converting again.