WebToolsForAll

Tools / Text Tools

Text encoding and escaping

Encode, decode, escape or unescape text using an explicit context.

Input

0 UTF-16 code units

Inputs start empty. Load example fills them only when you choose it. Reset clears current inputs and results.

Import a local text file

Output

Use the operation selector below for UTF-8 Base64 and URL-component conversion.

More options: print and local draft
Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Work through the task

Encode/decode UTF-8 text or escape/unescape a selected text/literal context.

  1. Select Encode for Base64/URL operations or Escape for literal transformations.
  2. Choose the direction and context before running. A complete quoted literal can be required when unescaping.
  3. Review the result before copying or downloading. Editing an input invalidates the previous result; keep an original if the transformation matters.

Example to check

UTF-8 text café 😀 round-trips through canonical Base64. HTML escape turns <b> into &lt;b&gt;.

Limits and output behavior

Maximum 100,000 input characters and 1,000,000 output characters. Contexts have different complete-literal rules; unsupported syntax and malformed encoded input are rejected. Escaping is not application validation, general HTML sanitization or SQL injection protection. Base64 decoding requires canonical padded text without whitespace and valid UTF-8 bytes. URL mode encodes a component, not a complete URL.

Troubleshooting

Confirm the action, direction and literal context. Canonical Base64 requires padding/no whitespace and valid UTF-8; malformed byte sequences or an incomplete quoted literal are rejected.

Questions

Does URL mode encode an entire URL safely for every purpose?

No. It encodes/decodes a URL component. Context, delimiters and the surrounding application still matter.

Input and privacy

Processing runs in this browser. Inputs are not saved automatically. An explicitly chosen local draft, where offered, is plaintext storage on this device. Downloaded files, clipboard contents and browser extensions have separate retention behavior.