Code tool

URL Encoder & Decoder

Prepare a query value, path segment, or other URL component for safe placement in a URL, then copy the result.

In-browser processingNo account requiredPrivacy details ↗

A QUICK WALKTHROUGH

How to use this tool

  1. Paste a URL component up to 100,000 characters.
  2. Choose Encode component or Decode component.
  3. Review the transformed value and copy it.

Components, not full URLs

This tool uses encodeURIComponent and decodeURIComponent. Use it for an individual query value, path segment, or fragment value; encoding an entire URL would also escape its structural colon and slashes.

Decode carefully

Malformed percent escapes cannot be decoded and produce an error. A plus sign is left as a plus sign because this tool follows JavaScript component encoding rather than form-url-encoded rules.

GOOD TO KNOW

Common questions

Should I paste a full URL?

No. Paste the component you want to encode or decode, such as one query value.

Does plus become a space?

No. A plus sign remains a plus sign with encodeURIComponent and decodeURIComponent.

Why did decoding fail?

The input has malformed percent escapes or an invalid encoded character sequence.