Encoding

Unicode Escape

Encode and decode Unicode escape sequences.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Unicode Escape and press Return.
  2. Choose Encode or Decode at the top.
  3. Paste or type your text into Input.
  4. Adjust the Options on the right if you need to. The defaults are listed below.
  5. Press Encode, or ⌘↵.
  6. To go the other way, press Swap or ⌘S. The output moves into the input.
  7. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
FormatUnicode escape format\uXXXX, \UXXXXXXXX, \xXX, U+XXXX\uXXXX
Escape all charactersEscape all characters, not just non-ASCIIOn or offOff
Uppercase hexUse uppercase letters in hex valuesOn or offOn

Example

Real output from Devly, with the default options.

Input
Café ☕ naïve — 日本語
Caf\u00E9 \u2615 na\u00EFve \u2014 \u65E5\u672C\u8A9E

From Terminal

With the free command-line tool installed:

Terminal
devly unicode "Café ☕ naïve — 日本語"
# or pipe text in
pbpaste | devly unicode

Quick Switch also finds it by: unicode, escape, \u, codepoint, hex, javascript, java.

More Encoding tools