Skip to content

Encoding

URL Encoder / Decoder

Encode and decode URL components, including Unicode, in your browser.

LocalProcessed locally — your text never leaves your browser.

Available actions: copy, clear, swap.

Component text
Result
Uses encodeURIComponent / decodeURIComponent. This encodes a component, not a full URL with encodeURI.

How to use

  1. 1. Enter a string

    Paste the text or encoded component you want to convert. Work stays in your browser.

  2. 2. Encode or decode

    Encode uses encodeURIComponent. Decode uses decodeURIComponent. Ctrl+Enter / Cmd+Enter encodes. Swap exchanges the two panels.

  3. 3. Copy the result

    Copy the output for query strings or path segments. This is component encoding, not a full-URL rewrite.

Examples

  • Encode a search query

    hello world becomes hello%20world. Spaces, ampersands, and unicode are escaped.

  • Decode a component

    caf%C3%A9 becomes café.

Frequently asked questions

Is this the same as encodeURI?
No. This tool uses encodeURIComponent and decodeURIComponent, which escape reserved characters such as &, =, and ?. That is what you want for a single query value, not for rewriting an entire URL.
Does the URL encoder upload my text?
No. Encoding and decoding run entirely in your browser.
Why did decode fail?
decodeURIComponent rejects incomplete percent sequences such as %E0%A4%A. Fix the encoding or encode the text again.