FreeKit
HomeAbout
FreeKit

100+ free online tools for developers, SEO professionals, and creators. Fast, private, and no sign-up required.

Categories

  • Image Tools (9)
  • SEO Tools (5)
  • Developer Tools (10)
  • Text Tools (11)
  • CSS Tools (7)
  • Utility Tools (3)
  • Calculators (15)
  • PDF & Document Tools (8)
  • OCR & Image Workflow (8)
  • Creator & Marketing Tools (8)
  • Text Cleanup Tools (8)
  • Data & File Conversion (8)
  • Finance Calculators (23)
  • Business Docs & Templates (6)
  • Privacy & Security Tools (5)
  • Media Tools (2)
  • Device Tools (10)
  • Document Tools (3)
  • QR Code Tools (2)

Popular Tools

  • Word Counter
  • JSON Formatter
  • Lorem Ipsum Generator
  • Password Generator
  • Color Converter

Company

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service
  • Disclaimer

© 2026 FreeKit. All rights reserved.

Privacy PolicyTermsDisclaimer
    1. Home
    2. Developer Tools
    3. URL Encoder/Decoder

    URL Encoder/Decoder

    Encode and decode URLs and query parameters.

    BeginnerDeveloper ToolsFreev1.0.0Updated Jun 10, 2025
    0 chars
    0 chars
    Stats:Input: 0 charsOutput: 0 charsEncoded chars: 0

    Common URL-Encoded Characters

    CharacterEncodedDescription
    ␣%20Space
    !%21Exclamation mark
    "%22Double quote
    #%23Hash / fragment
    $%24Dollar sign
    %%25Percent sign
    &%26Ampersand
    '%27Single quote
    (%28Left parenthesis
    )%29Right parenthesis
    +%2BPlus sign
    ,%2CComma
    /%2FForward slash
    :%3AColon
    ;%3BSemicolon
    =%3DEquals sign
    ?%3FQuestion mark
    @%40At sign
    <%3CLess than
    >%3EGreater than

    100% Private — Your Data Never Leaves Your Browser

    All URL encoding and decoding is performed entirely in your browser using client-side JavaScript. No data is sent to any server, stored, or tracked.

    How to Use the URL Encoder/Decoder

    1. Choose your mode — Select Encode to convert text to percent-encoded format, or Decode to convert percent-encoded strings back to readable text. Click the mode buttons in the toolbar or use the dedicated Encode/Decode action buttons.
    2. Select encoding type — When encoding, choose whether to encode the full URL (preserves structural characters like :// and ? using encodeURI) or encode values only (encodes everything including /, ?, and = using encodeURIComponent). Use full URL mode for complete web addresses, and values-only mode for query parameter values.
    3. Enter your input — Type or paste your text into the input textarea on the left. For encoding, enter any text including URLs, query strings, or text with special characters. For decoding, paste a percent-encoded string.
    4. Encode or Decode — Click the Encode or Decode button to process your input. Alternatively, enable the auto-encode toggle for real-time processing as you type. The result appears instantly in the output panel.
    5. Copy or Swap — Click Copy Output to copy the result to your clipboard. Use the Swap button to move the output back to the input and flip the mode, useful for round-trip verification.

    Features

    • Encode mode with two strategies: encodeURI() for full URLs and encodeURIComponent() for values
    • Decode mode using decodeURIComponent() to convert percent-encoded strings back to readable text
    • Full URL toggle to preserve structural URL delimiters (://, ?, &, =) when encoding complete web addresses
    • Auto-encode toggle for instant real-time processing as you type
    • Reference table of 20 common URL-encoded characters with hex values and descriptions
    • Stats bar showing input length, output length, and count of encoded/decoded characters
    • Swap button to quickly move output to input and flip between encode/decode modes
    • Clear error display for invalid percent-encoded input with specific guidance
    • Side-by-side layout on desktop, stacked layout on mobile for comfortable editing
    • 100% client-side processing — your data never leaves your browser

    Understanding URL Encoding

    What is Percent Encoding?

    Percent encoding (URL encoding) is defined in RFC 3986 as a mechanism to represent arbitrary data in URIs using only the limited set of US-ASCII characters allowed in URLs. Characters that are not in the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) are replaced with a % sign followed by two hexadecimal digits representing the character's byte value. For example, a space (ASCII 32, hex 20) becomes %20.

    encodeURI vs encodeURIComponent

    JavaScript provides two encoding functions. encodeURI() preserves characters that have structural meaning in URLs (:, /, ?, #, &, =, +, @), making it suitable for encoding complete URLs. encodeURIComponent() encodes all characters except A-Z, a-z, 0-9, -, _, ., ~, making it ideal for encoding individual query parameter values. Using the wrong function is a common source of bugs — our toggle lets you switch between them easily.

    Reserved vs Unreserved Characters

    RFC 3986 defines reserved characters (:, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, =) as having special meaning in URI syntax. Unreserved characters (A-Z, a-z, 0-9, -, _, ., ~) never need encoding and can appear literally in any URI. When a reserved character appears in a non-structural context (like a ? in a query value), it must be percent-encoded.

    UTF-8 in URL Encoding

    URL encoding works on bytes, not characters. Non-ASCII characters like emojis, accented letters, and CJK text are first converted to UTF-8 byte sequences, then each byte is individually percent-encoded. For example, the é character becomes the UTF-8 bytes C3 A9, encoding to %C3%A9. This means a single non-ASCII character can produce up to 9 characters in a percent-encoded URL (for 4-byte UTF-8 sequences like emojis).

    Common Use Cases

    API Query Parameters

    Encode parameter values when constructing API URLs to ensure special characters like spaces, ampersands, and equals signs don't break the query string structure.

    Web Form Data

    Understand how browsers encode form submissions and decode URL-encoded form data received from application/x-www-form-urlencoded POST requests.

    URL Sharing and Links

    Encode URLs that contain special characters before embedding them in emails, social media posts, or other contexts where the URL might be mangled.

    Debugging API Requests

    Decode percent-encoded URLs from browser dev tools, server logs, or API documentation to understand the actual parameter values being sent.

    Redirect URLs

    Encode redirect target URLs when passing them as query parameters (e.g., ?redirect=/page?a=1&b=2 must be properly encoded to avoid parsing errors).

    SEO and Canonical URLs

    Ensure URLs contain only safe ASCII characters for search engine crawlers. Non-ASCII characters in slugs should be percent-encoded for proper indexing.

    Data URI Parameters

    Encode data within data URIs or custom URL schemes where special characters could be misinterpreted as delimiters.

    Webhook and Callback URLs

    Encode callback URLs that contain query parameters when passing them as values in other query strings or configuration fields.

    URL Encoder/Decoder Tips

    • If you need to encode binary data or authentication payloads for transmission, use our Base64 Encoder — it converts arbitrary data into a 64-character ASCII representation suitable for JSON, email, and data URIs.
    • When embedding user-generated text into HTML templates, first URL-encode it here, then use our HTML Entity Encoder to convert special characters like <, >, and & into entity references for XSS prevention.
    • If your encoded URL contains JSON query parameters, decode them first with this tool, then paste the result into our JSON Formatter to beautify and validate the structure.
    • Enable the 'Encode full URL' toggle when you have a complete URL with colons, slashes, and question marks that should be preserved as structural delimiters. It uses encodeURI() instead of encodeURIComponent(), keeping :///?= reserved characters intact.
    • The Swap button moves the output to the input area and flips between encode and decode modes — perfect for round-trip testing to verify your encoded strings decode back to the original text.
    • Enable auto-encode for instant feedback as you type. This is especially useful when working with API query strings where you want to see the encoded result in real time as you build parameter values.
    • Spaces in URLs are encoded as %20 by default (the RFC 3986 standard). Note that some legacy systems use + for spaces in application/x-www-form-urlencoded data — our tool always uses the standard %20 format.
    • The reference table below the tool shows 20 commonly encoded characters with their hex values. Use it as a quick lookup when you need to manually verify or construct percent-encoded strings.

    Frequently Asked Questions

    Related Tools

    Base64 Encoder/Decoder

    Encode and decode Base64 strings and files.

    BeginnerFree

    HTML Entity Encoder

    Encode and decode HTML entities for safe web content.

    BeginnerFree

    JSON Formatter

    Format, validate, and beautify JSON data instantly.

    BeginnerFree

    UUID Generator

    Generate random UUIDs (v4) instantly.

    BeginnerFree
    Faisal Hossain — Founder & Developer of FreeKit

    Faisal Hossain

    Founder & Developer of FreeKit

    I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.

    Services

    • SEO Audit, Technical SEO & On-Page SEO
    • WordPress & Shopify Development
    • WooCommerce & E-commerce Management
    • n8n & AI Workflow Automation
    • Python Automation & Web Scraping
    • VPS, Linux & Self-Hosted Infrastructure
    • AI Vibe Coding Expert — APPS, WEB, SAAS

    Availability

    Remote: Available Now

    United States & European company

    USD $25/hour or USD $1,500/month

    On-site: Open to Relocation

    With work visa & travel support

    Email MeWhatsAppLinkedIn
    View full profile & services