Text & Encoding

URL Encoder / Decoder

Percent-encode or decode text for use in URLs — component or full-URI scope.

Component vs full URI

URLs may only contain a limited set of characters, so anything else — spaces, accents, &, ?, / — is percent-encoded (e.g. a space becomes %20). Which characters get encoded depends on where the text goes:

  • Component (encodeURIComponent) — encodes everything that isn't safe, including & = ? / : #. Use it for a single query value, path segment or form field, so its contents can't be mistaken for URL structure.
  • Full URI (encodeURI) — leaves the characters that make a URL work (: / ? & #) intact and only encodes the rest. Use it to tidy a complete address you don't want to break apart.

Private by design

Encoding and decoding happen entirely in your browser — nothing you paste is uploaded. Decoding malformed input (a stray % or an incomplete sequence) will show an error rather than mangle the text.

These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.