encoding/url

URL percent-encode or decode text.

Free / no pricing configured

What it does

Percent-encodes text for safe use in URLs, or decodes a percent-encoded string back to text.

Primary use cases

  • Encoding a query-string value or path segment.
  • Decoding a percent-encoded URL component.

Good to know

action is encode (default) or decode. Set plus to encode/decode spaces as + (HTML form style) instead of %20. Computed locally.

Parameters

plusbooleanoptional

Encode/decode spaces as '+' (form style) instead of '%20'. Defaults to false.

textstringrequired

Text to encode, or percent-encoded string to decode.

actionstringoptional

Whether to encode or decode. Defaults to encode.

encoding/url — Faro