Homei18n Special Character Escaper

i18n Special Character Escaper

Automatically handle special character escaping in i18n translation files, supporting both JSON and plain text formats, fixing parsing errors caused by curly braces, @ symbols, etc.



Documentation

About i18n JSON Escaper

This tool escapes special characters in i18n JSON content to avoid template parsing conflicts in frameworks like Vue i18n.

Key Features

  • One-click Escape: Escapes conflict-prone characters such as {, }, @, |, and $.
  • One-click Unescape: Restores escaped text back to original form.
  • JSON-friendly Processing: Keeps JSON structure as intact as possible.
  • Bilingual Workflow Support: Works well with common locale file editing flow.

Steps

  1. Paste your i18n JSON into the input area.
  2. Click escape to generate safe output.
  3. Use unescape when you need to revert.
  4. Copy the result into your locale file.

Tips

  • Back up source JSON before bulk conversion.
  • Re-check rendered pages after conversion.
  • If you use placeholders like {name}, validate against your i18n parser rules.

FAQ

Why escape @ or |?

Some i18n parsers treat these symbols as syntax markers, which may cause unexpected parsing.

Are JSON keys changed?

No. The tool mainly processes special characters in string values.