URL Encoder

encodeURIComponent — safe for URL fragments.

Encoder Text Codecs Updated Apr 20, 2026
How to Use
  1. Type or paste your input on the left.
  2. The result appears live on the right - no buttons needed.
  3. Copy the output with one click.

About this codec

encodeURIComponent — safe for URL fragments.

About URL encoding

URL encoding is percent-encoding that escapes characters unsafe in a URL (a space becomes %20). This tool lets you encode text into URL encoding instantly and entirely in your browser. It is commonly used for building query strings and safe links.

💡Worked example: hello worldhello%20world

Note that an encoding is a reversible representation, not encryption: there is no secret key, and anyone can decode it. Its job is safe, lossless transport of data — not privacy.

How to use it

Type or paste your text into the box and it turns into URL encoding live as you type — everything runs locally in your browser. Learn more in the Knowledge Base.

Frequently Asked Questions

Does this leave my browser?

No - the conversion runs entirely in JavaScript on this page.

What does URL encoding look like?

hello world becomes hello%20world. URL encoding is typically used for building query strings and safe links.

Does my text leave my browser?

No. The URL encoding conversion runs entirely in JavaScript on this page — nothing is uploaded, and it works offline.

Is URL encoding reversible?

Yes. URL encoding is a lossless representation, so you can convert back and forth without losing any data.

Common Use Cases

Building query strings and safe links

URL encoding is commonly used for building query strings and safe links — produce it here in one step.

Learning & puzzles

See how text maps to URL encoding — handy for coursework, CTF challenges, and puzzle hunts.

Private by design

Everything runs locally in your browser, so you can paste sensitive text without it leaving your device.

Last updated: