Skip to content
2x2xKit

URL Encoder/Decoder

Encode text into a URL-safe format or decode URL-encoded text.

How this is calculated
Encode: encodeURIComponent(text); Decode: decodeURIComponent(text)

Assumptions used in this calculation

  • Encoding function: Uses encodeURIComponent/decodeURIComponent, suited for encoding individual query values rather than a full URL.

About this calculator

The URL encoder/decoder converts text to and from percent-encoded (URL-safe) format using encodeURIComponent and decodeURIComponent.

Worked example

'hello world' → 'hello%20world'

Result: URL-safe text

Was this helpful?

Frequently asked questions