Text utilities

URL Encoder and Decoder

Encode a URL component or decode percent-encoded UTF-8 text locally.

Text stays in your browserCopy your result

Input workspace

Runs on your device

OUTPUT WORKSPACE

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter text or encoded component, mode.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Encoding uses encodeURIComponent to escape a component. Decoding uses decodeURIComponent to interpret percent-encoded bytes as text.

A WORKED EXAMPLE

The component “hello world” encodes as “hello%20world”. The ampersand encodes as %26.

What to keep in mind

This encodes a component, not an entire URL while preserving its separators. Plus signs are not automatically converted to spaces during decoding.

Common questions

Can I paste a complete URL?

You can, but component encoding will also escape its slashes and separators. That is useful only when embedding the whole URL as a value.

Does encoding encrypt the text?

No. Anyone can reverse percent encoding; it provides no secrecy.

Methodology maintained by ClarityKit. How these tools are built and checked.