Home / Text / URL Encryption and Decryption

URL Encryption and Decryption

Percent-encoding and Base64 for links, with a Swap button that returns the result to the input.

URL Encryption and Decryption — Runs locally

Input URL or Text

Output Result

How to use

Using this tool

URL Encryption and Decryption percent-encodes a URL, decodes one, and applies Base64 encoding or decoding to the same text. All of the work on URL Encryption and Decryption happens in this tab, so the values you enter or the files you open never travel to a server.


Controls on this page

URL Encryption and Decryption gives you URL Encode, URL Decode, Base64 Encode, Base64 Decode and Swap. The options listed below the input on URL Encryption and Decryption are the ones that change how the output is produced, and every one of them applies to a single run.


  • Four actions plus Swap.
  • Works on URLs and plain text.

How to use URL Encryption and Decryption

  1. Type or paste your content into the input box at the top of URL Encryption and Decryption.
  2. Pick the action on URL Encryption and Decryption that matches the job, for example URL Encode.
  3. Press Clear All on URL Encryption and Decryption and read the answer in the separate output box.
  4. Copy the finished text from URL Encryption and Decryption, then clear the boxes before starting the next one.

A worked example

Encode a link that contains a space and an ampersand and the output replaces them with %20 and %26, making the URL safe to nest inside another query string.


A closer look at URL Encryption and Decryption

Percent-encoding turns reserved characters into a percent sign plus two hexadecimal digits, which is what makes a nested link valid. Decoding reverses that step, which is how a readable URL can be recovered from a long tracking parameter. Base64 is offered for tokens that need to travel through systems expecting an alphanumeric string.

Swap moves the result into the input box, so an encode can be undone without copying by hand. Neither operation provides secrecy, and a password should never be protected this way.


Putting URL Encryption and Decryption to work

URL Encryption and Decryption keeps two boxes and five buttons: URL Encode, URL Decode, Base64 Encode, Base64 Decode and Swap. URL Encode turns a space into %20 and an ampersand into %26, which is what a query string needs to stay intact.

Swap moves the output back into the input box, so a decode can be run on the result of an encode without copying. Base64 is not encryption, and the page treats it as an encoding step for transport rather than a way to hide data.


Where URL Encryption and Decryption helps

  • Embedding a return URL inside another link.
  • Reading a tracking parameter that arrives percent-encoded.
  • Moving a token between two systems.

Precision and limits

  • Percent-encoding is not encryption: it makes reserved characters safe, but anyone can decode the result.
  • Base64 changes the character set but adds no secrecy either, so neither action should protect a password.
  • Swap moves the result back into the input box, which makes it easy to reverse a step.

Frequently asked questions

Is this real encryption?

No. Percent-encoding and Base64 are reversible encodings, not ciphers, so they hide nothing from a reader.

Why does my link contain %20?

A space is not allowed in a URL, so percent-encoding replaces it with the code for a space.

What does Swap do?

It copies the result into the input field so the next action starts from the transformed text.

Can I encode text that is not a URL?

Yes, both percent-encoding and Base64 accept ordinary text.