URL Encoder/Decoder
FreePercent-encode text for safe use inside a URL with modes for a single value, a full URI, or form data, decode percent-encoded text back into readable form, and automatically break a decoded URL down into its protocol, host, path, query parameters, and fragment, all running entirely in your browser.
Runs entirely in your browser. Your text is never uploaded anywhere.
Recent Activity
Visible to everyone. Last 20 uses across all visitors, newest first.
Decoded a percent-encoded value
58 minutes ago
Decoded a percent-encoded value
58 minutes ago
Decoded a percent-encoded value
58 minutes ago
Decoded a percent-encoded value
58 minutes ago
Encoded 11 character(s) of text
58 minutes ago
Encoded 11 character(s) of text
58 minutes ago
Encoded 34 character(s) of text
58 minutes ago
Encoded 34 character(s) of text
58 minutes ago
Encoded 22 character(s) of text
58 minutes ago
What this tool does
This tool percent-encodes text for safe use inside a URL, with separate modes for a single value, a complete URI, and form-encoded data, and decodes percent-encoded text back into readable form, including an automatic breakdown of the protocol, host, path, query parameters, and fragment when the decoded text is a full URL.
How It Works
URLs can only safely contain a limited set of ASCII characters, so any other character, or a reserved character used outside its special meaning, is written as % followed by its two-digit hexadecimal byte value (or values, for multi-byte UTF-8 characters). This tool uses your browser's built-in encodeURIComponent, encodeURI, and decodeURIComponent functions to perform the exact same percent-encoding that your browser itself uses when you type a URL, and additionally swaps between %20 and + for the space character depending on the mode you select.
Problems it solves
- Safely including special characters, spaces, or non-English text inside a query parameter or URL path segment.
- Reading what a long, percent-encoded URL from a browser address bar, log file, or API actually contains.
- Breaking down an encoded URL into its protocol, host, path, and individual query parameters for debugging.
- Converting between the %20 and + conventions for spaces when moving a value between a query string and a form submission.
Frequently asked questions
›What is the difference between the "Component" and "Full URI" encoding modes?
"Component" mode (encodeURIComponent) escapes every character that is not safe in a single value, including : / ? & and #, so it is correct for a value that will be placed inside a query parameter; "Full URI" mode (encodeURI) leaves those characters alone because they are needed to separate the different parts of a complete URL, so use it only when encoding an entire URL, not a single value within one.
›Why does "Form data" mode turn spaces into + instead of %20?
The application/x-www-form-urlencoded format used by HTML forms and query strings in many frameworks represents spaces as a literal + character rather than %20; both are valid and mean the same thing, but you should match whichever convention the receiving system expects.
›Why is there a checkbox for treating + as a space when decoding?
Standard percent-decoding does not touch the + character, but values from a form submission or a typical query string use + to mean a literal space; this checkbox is on by default because that is the more common case, but you can turn it off if you are decoding a value where + was deliberately percent-encoded as %2B and should stay as a literal plus sign.
›What is the URL breakdown section for?
When the decoded text is a complete, valid URL, this tool parses it into its protocol, host, path, individual query parameters, and fragment, so you can inspect a long encoded URL's structure at a glance instead of reading the raw string character by character.
›Does this tool send my data anywhere?
No, encoding and decoding both happen using your browser's own built-in JavaScript functions; nothing is ever uploaded to a server.
Related Tools
Text
SQL Formatter
Reformat a SQL query for readability with consistent indentation, one clause per line, and your choice of keyword capitalization, across more than a dozen SQL dialects including MySQL, PostgreSQL, SQLite, T-SQL, PL/SQL, BigQuery, and Snowflake, all running entirely in your browser.
FreeText
SSL Certificate & Key Pair Checker
Check whether an SSL/TLS private key, certificate, and optional CSR actually belong to the same key pair, decode and view the certificate's subject, issuer, validity, SANs and fingerprints, all running entirely in your browser.
FreeText
SSL Certificate Format Converter
Convert SSL/TLS certificates between PEM and DER encoding, bundle certificates into or extract them from a PKCS#7 (.p7b) file, and package a certificate and private key into a password-protected PKCS#12 (.pfx / .p12) file or extract them back out, all running entirely in your browser.
FreeText
SSL Certificate Viewer
Decode one or more PEM or DER X.509 certificates and view every field in plain language: subject, issuer, validity, fingerprints, public key details, and every standard extension including Key Usage, Subject Alternative Names, and Authority Information Access, all running entirely in your browser.
FreeText
Text Diff Checker
Compare two blocks of text and see exactly what was added, removed, or changed at the line, word, or character level, with a unified or side-by-side view and a downloadable standard diff file, all running entirely in your browser.
FreeText
Text To ASCII Converter
Convert text into its ASCII character codes and back again, with the result also shown in binary, hexadecimal, and octal, all running entirely in your browser with nothing ever uploaded.
FreeText
Text To Binary Converter
Convert text into its binary character codes and back again, with the result also shown in decimal, hexadecimal, and octal, all running entirely in your browser with nothing ever uploaded.
FreeText
Text To Hex Converter
Convert text into its hexadecimal character codes and back again, with the result also shown in decimal, binary, and octal, all running entirely in your browser with nothing ever uploaded.
Comments (0)
Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.
No comments yet. Be the first to share your thoughts!