URL Encoder / Decoder

Encode and decode URLs for safe transmission with various encoding options including standard URL encoding and plus encoding.

Input

Enter URL or text to encode/decode

Ln 1, Col 1
0 B

Output

Encoded/decoded result

URL Encoding Information

Standard URL Encoding

Converts special characters to percent-encoded format (%XX) for safe transmission in URLs.

  • Space → %20
  • ! → %21
  • # → %23
  • @ → %40

Plus Encoding

Alternative encoding where spaces become + (commonly used in form data).

  • Space → +
  • + → %2B
  • Other special chars → %XX

Free Online URL Encoder & Decoder

CodingBubble's URL Encoder tool helps you encode special characters in URLs for safe transmission, or decode percent-encoded URLs back to readable text. Essential for working with query strings, API parameters, and web development.

Your input is sent to our server for processing and is not saved there. Our usage logs record metadata (tool, sizes, timing, browser type and a hashed IP address) and error messages, which can include fragments of your input. See our Privacy Policy for details on how we handle data.

Features

  • URL encode special characters
  • Decode percent-encoded URLs
  • Encode full URL or component only
  • UTF-8 character support
  • Copy result with one click
  • Fast server-side processing

Example

Original URL:

https://example.com/search?q=hello world

URL Encoded:

https://example.com/search?q=hello%20world

Frequently Asked Questions

What is URL encoding?

URL encoding (also called percent encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, &, and = are replaced with %XX codes.

When should I URL encode?

URL encode when passing data in query strings, form submissions, or API parameters. Any character that isn't a letter, number, or safe symbol (-_.~) should be encoded.

What's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but keeps characters like : / ? & intact. encodeURIComponent encodes everything except letters, numbers, and -_.~. Use encodeURIComponent for individual parameter values.

How is my data handled?

Your input is sent to our server for processing and is not saved there. Our usage logs record metadata (tool, sizes, timing, browser type and a hashed IP address) and error messages, which can include fragments of your input.

URL encoding reference

Common characters and their percent-encoded values:

CharacterEncoded
space%20
!%21
#%23
$%24
%%25
&%26
'%27
(%28
)%29
+%2B
,%2C
/%2F
:%3A
;%3B
=%3D
?%3F
@%40

Letters, digits, hyphen, period, underscore and tilde are unreserved and do not need encoding.

Spaces: %20 or +?

In a URL path, a space is written as %20. In form submissions and many query strings, it can also be written as +. Use the Encode (+) and Decode (+) buttons for the form style, and the standard buttons for %20. A literal plus sign must be encoded as %2B, or a form-style decoder will turn it into a space.

More questions

Is a dash encoded in a URL?

No. The hyphen is an unreserved character, so it stays as it is. The same applies to periods, underscores and tildes.

Why do I see %2520 in a URL?

The value was encoded twice. The percent sign of %20 was encoded again as %25. Decode it twice, and encode only once in your code.

Related tools