URL Encoder & Decoder
Convert one text value to or from UTF-8 percent encoding. Choose a URL component or a form value so that spaces, plus signs and punctuation follow the intended rules.
Convert a component or form value
- Choose Encode for ordinary text or Decode for a percent-encoded value. Paste one value, not a complete query that needs to be split into names and values.
- Choose URL component to represent spaces as %20 and keep a literal plus when decoding. Choose Form value to write spaces as plus signs and read literal plus signs as spaces.
- Select Convert, check the complete result and its byte counts, then copy or download the text. Errors return no partial result; changing an input removes the old answer.
Percent encoding, UTF-8 and context
Percent encoding writes a byte as a percent sign followed by two hexadecimal digits. A letter can require several UTF-8 bytes: é becomes %C3%A9. This changes representation, not the language or meaning of the text.
Component mode leaves letters A–Z and a–z, digits, hyphen, period, underscore and tilde unchanged. Form mode also keeps an asterisk, encodes tilde and writes an ordinary space as a plus sign. A literal plus is encoded as %2B in either mode.
Decoding is a single strict pass. Lowercase hex is accepted, but every percent sign must start a complete escape and the resulting bytes must form valid UTF-8. Form parsers in other software may instead repair malformed input; rejection here does not certify that an entire URL is invalid.
Encoding accepts up to 65,536 UTF-8 input bytes. Decoding accepts up to 196,608 source bytes and returns at most 65,536 decoded bytes. These are byte limits, not character counts, so emoji and many non-Latin letters use more than one byte.
Small examples that reveal the difference
The text a b+c becomes a%20b%2Bc in component mode and a+b%2Bc in form mode. When decoding, %2B always produces a literal plus; only a plus already present in the form-mode source becomes a space.
The example café + tea/~* becomes caf%C3%A9%20%2B%20tea%2F~%2A as a component, or caf%C3%A9+%2B+tea%2F%7E* as a form value. Slash is encoded because the input is one value, not a whole path.
Decoding %2520 returns the text %20, not a space. Decoding A%0D%0AB returns A, a carriage return, a line feed and B. The preview may hide some control characters; the downloaded UTF-8 bytes preserve them.
What this conversion does not do
This is not a URL builder, validator, link opener or safety check. Encoding an entire address also encodes its colon, slashes, question mark and other structural punctuation. Decode output is displayed only as text, never opened or interpreted as HTML.
There is no legacy-charset detection, binary export, query parsing, line-by-line mode, Unicode normalization or automatic second decode. Empty input needs text, but spaces and line breaks are valid data. Malformed Unicode or invalid UTF-8 is rejected instead of replaced.
Textareas can normalize pasted line endings, and clipboard software can alter line endings or control characters. Download uses the logical result's UTF-8 bytes without an added newline or byte-order mark; an existing leading mark remains data.
Local conversion and explicit actions
The conversion runs in your browser without tool-added uploads, input history or input in page URLs. Copy writes the current text only when requested, and Download creates a local text file. Normal site services and consent settings remain separate.
URL encoding questions
Sources
Reviewed 4 November 2026. These references describe the representations; strict error rejection is this tool's policy.
Related tools
JSON to YAML
Convert JSON to YAML locally while preserving number text and quoted strings; copy or download the complete result.
Open tool — JSON to YAMLYAML to JSON
Convert one YAML document locally to JSON with exact number text and bounded aliases, then copy or download the complete result.
Open tool — YAML to JSONHTML to Markdown
Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown to HTML
Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.
Open tool — Markdown to HTMLText Sorter
Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.
Open tool — Text SorterRemove Duplicate Lines
Keep the first copy of each exact text line, preserving order, significant spaces and blank rows, then copy or download the result.
Open tool — Remove Duplicate LinesText Diff Checker
Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.
Open tool — Text Diff CheckerText to Speech Reader
Listen to pasted text with a browser voice. Adjust speed, pitch and volume, and replay short segments. Network voices can send text to their service.
Open tool — Text to Speech ReaderCase Converter
Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.
Open tool — Case ConverterHTML Entity Encoder/Decoder
Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.
Open tool — Markdown Table GeneratorHTML Table Generator
Build a rectangular table with captions and headers, then copy HTML and CSS.
Open tool — HTML Table GeneratorQuery String Parser & Builder
Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.
Open tool — Query String Parser & BuilderBase64 Encoder & Decoder
Encode UTF-8 text as standard or URL-safe Base64, or decode either format with clear errors and complete text output.
Open tool — Base64 Encoder & DecoderXML Formatter
Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.
Open tool — XML FormatterJSON Formatter & Validator
Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.
Open tool — JSON Formatter & ValidatorSMS Character Counter & Segment Calculator
See how your message is encoded, where its segments end and what it may cost. Your text stays in your browser.
Open tool — SMS Character Counter & Segment CalculatorSocial Media Character Counter
Check platform-specific limits and split posts without losing text.
Open tool — Social Media Character CounterCharacter Counter
Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.
Open tool — Character CounterText Size Calculator
Compare text encodings and payload sizes in your browser.
Open tool — Text Size CalculatorPDF Text Cleaner
Fix line breaks and spacing in text copied from a PDF. Preserve your original and review ambiguous hyphens before copying the cleaned text.
Open tool — PDF Text CleanerFancy Text Converter
Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.
Open tool — Fancy Text ConverterGarbled Text Fixer
Fix garbled text and repair broken accents with a browser-based mojibake fixer. Review each possible UTF-8 reversal before applying it.
Open tool — Garbled Text Fixer