Skip to content
LlamaPDFLlamaPDF
🔗

URL Encoder/Decoder

Encode and decode URLs

Last updated:

URL encoding (percent encoding) replaces special characters in a URL or query string with their %XX escape sequences so they can be safely transmitted in HTTP requests. LlamaPDF encodes and decodes via the browser's encodeURIComponent and decodeURIComponent APIs entirely in your tab. Reversible at any time.

Characters: 0
Characters: 0

Your file stays on your device — never uploaded

How to encode or decode a URL

  1. 1

    Paste your URL or text string into the input field above.

  2. 2

    Choose whether to encode (convert special characters to percent-encoded format) or decode (convert percent-encoded sequences back to readable characters).

  3. 3

    Your result appears instantly. Copy it to your clipboard with one click. The encoding and decoding happen in your browser with no server requests.

Why use our URL encoder?

URLs cannot contain spaces, special characters, or non-ASCII characters directly — they need to be percent-encoded to work reliably in web browsers, APIs, and email links. Incorrectly encoded URLs cause broken links, failed API requests, and tracking issues. This tool handles the encoding precisely and bidirectionally, so you can encode text for use in URLs or decode percent-encoded strings back to readable form without memorizing encoding rules.

Everything runs in your browser with no data sent to any server. Working with HTML content instead? Our HTML entity encoder handles that. For Base64 transformations, check out the Base64 encoder and decoder. If you need to embed encoded URLs in a QR code, use our QR code generator.

Frequently Asked Questions

What is URL encoding?

URL encoding replaces special characters in a URL with percent-encoded equivalents. For example, a space becomes %20 and an ampersand becomes %26. This ensures URLs work correctly in web browsers and APIs.

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps URL structure characters like /, :, ? intact. encodeURIComponent encodes everything including those characters. Use encodeURI for full URLs and encodeURIComponent for individual parameter values.

When do I need URL encoding?

When passing special characters in URL parameters, when building API requests, when embedding URLs inside other URLs, or when handling non-ASCII characters in web addresses.

Related Tools