Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Unicode ConversionNew to Visual Studio Code? Get it now.
Unicode Conversion

Unicode Conversion

Taweesak S.

|
9,705 installs
| (7) | Free
Bidirectional Unicode conversion: Convert between Unicode escape sequences and Unicode characters effortlessly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Unicode Conversion

Unicode Conversion is a Visual Studio Code extension that allows you to convert between Unicode escape sequences and Unicode characters bidirectionally in your files effortlessly.

Features

✨ Bidirectional Conversion:

  • 🔀 Convert Unicode escape sequences to Unicode characters (\u0e01 → ก)
  • 🔄 Convert Unicode characters to escape sequences (ก → \u0e01)
  • 📄 Convert entire documents or selected text
  • ⌨️ Multiple input methods: Context menu, Command Palette, Keyboard shortcuts

Conversion Examples

Unicode to Text (Decode)

Input:  \u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35
Output: สวัสดี

Input:  \u4f60\u597d
Output: 你好

Input:  \u0048\u0065\u006c\u006c\u006f
Output: Hello

Text to Unicode (Encode)

Input:  สวัสดี
Output: \u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35

Input:  你好
Output: \u4f60\u597d

Input:  こんにちは
Output: \u3053\u3093\u306b\u3061\u306f

Usage

🔀 Unicode to Text Conversion (Decode)

Convert Document Unicode Escape Sequences

  • Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette, then type Unicode Conversion: Convert Document (Unicode → Text) and select the command. Icon of Unicode Conversion
  • Context Menu: Right-click in the editor window, navigate to Unicode Conversion > Convert Document (Unicode → Text). Icon of Unicode Conversion
  • Keyboard Shortcut: Press Ctrl+Alt+U (Windows/Linux) or Cmd+Alt+U (Mac) to convert all Unicode escape sequences in the document.

Convert Selected Unicode Escape Sequences

  • Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette, then type Unicode Conversion: Convert Selection (Unicode → Text) and select the command. Icon of Unicode Conversion
  • Context Menu: Right-click in the editor window, navigate to Unicode Conversion > Convert Selection (Unicode → Text). Icon of Unicode Conversion
  • Keyboard Shortcut: Press Ctrl+Alt+S (Windows/Linux) or Cmd+Alt+S (Mac) to convert the selected Unicode escape sequences.

🔄 Text to Unicode Conversion (Encode)

Convert Document to Unicode Escape Sequences

  • Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette, then type Unicode Conversion: Convert Document (Text → Unicode) and select the command.
  • Context Menu: Right-click in the editor window, navigate to Unicode Conversion > Convert Document (Text → Unicode).
  • Keyboard Shortcut: Press Ctrl+Alt+Shift+U (Windows/Linux) or Cmd+Alt+Shift+U (Mac) to convert all non-ASCII characters in the document to Unicode escape sequences.

Convert Selected Text to Unicode Escape Sequences

  • Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette, then type Unicode Conversion: Convert Selection (Text → Unicode) and select the command.
  • Context Menu: Right-click in the editor window, navigate to Unicode Conversion > Convert Selection (Text → Unicode).
  • Keyboard Shortcut: Press Ctrl+Alt+Shift+S (Windows/Linux) or Cmd+Alt+Shift+S (Mac) to convert the selected non-ASCII characters to Unicode escape sequences.

⌨️ Keyboard Shortcuts Summary

Action Shortcut Description
Unicode → Text (Document) Ctrl+Alt+U Convert all Unicode escape sequences in document
Unicode → Text (Selection) Ctrl+Alt+S Convert selected Unicode escape sequences
Text → Unicode (Document) Ctrl+Alt+Shift+U Convert all non-ASCII characters to Unicode escapes
Text → Unicode (Selection) Ctrl+Alt+Shift+S Convert selected non-ASCII characters to Unicode escapes

💡 Use Cases

  • JSON Files: Convert encoded Unicode strings to readable text
  • Database Exports: Decode Unicode escape sequences from database dumps
  • Internationalization: Work with multilingual content in various formats
  • API Responses: Convert between encoded and decoded Unicode formats
  • Configuration Files: Handle Unicode content in config files
  • Log Files: Decode Unicode escape sequences in application logs

Installation

  1. Open Visual Studio Code
  2. Press Ctrl+P to open the quick open dialog
  3. Type ext install jackz.unicode-conversion and press Enter

Alternatively, you can install it from the VS Code Marketplace.

🚀 What's New in Latest Version

  • ✅ Bidirectional Conversion: Convert both ways (Unicode ↔ Text)
  • ✅ Enhanced Commands: Clear command names with direction indicators
  • ✅ New Keyboard Shortcuts: Additional shortcuts for reverse conversion
  • ✅ Improved Context Menu: Better organization of conversion options
  • ✅ Better Range Handling: Fixed document replacement issues

Support

If you find this extension helpful, consider supporting me by buying me a coffee!

Buy Me a Coffee

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft