URL Encoder & Decoder - Encode and Decode URLs Online

Free online URL encoder and decoder. Encode special characters for URLs or decode percent-encoded strings. Supports full URL and component encoding.

Common Encodings

CharacterEncodedDescription
(space)%20Space character
&%26Ampersand
=%3DEquals sign
?%3FQuestion mark
/%2FForward slash
#%23Hash/Fragment
@%40At sign
+%2BPlus sign

URL Encoding Quick Reference

  • • Space becomes %20 (or + in form data)
  • • Reserved characters: ! # $ & ' ( ) * + , / : ; = ? @ [ ]
  • • Unreserved characters (not encoded): A-Z a-z 0-9 - _ . ~
  • • Non-ASCII characters are first encoded as UTF-8, then percent-encoded

About This Tool

What is URL Encoding?

URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, &, =, and non-ASCII characters are replaced with % followed by their hexadecimal value.

When to Use URL Encoding

• Query string parameters with special characters
• Non-ASCII characters in URLs (international characters)
• Reserved characters used as data (not delimiters)
• Form data submission (application/x-www-form-urlencoded)

encodeURI vs encodeURIComponent

encodeURI encodes a full URL but preserves characters like :, /, ?, #, &. encodeURIComponent encodes everything except A-Z, a-z, 0-9, and - _ . ~, making it suitable for encoding individual URL components.

Frequently Asked Questions

What is URL encoding?

URL encoding converts characters into a format safe for URLs. Special characters are replaced with % followed by their hexadecimal value. For example, space becomes %20.

Why do URLs need encoding?

URLs can only contain certain ASCII characters. Special characters, spaces, and non-English characters must be encoded to be transmitted correctly in URLs.

What's the difference between encodeURI and encodeURIComponent?

encodeURI is for encoding full URLs and preserves URL structure characters (:/?#&=). encodeURIComponent encodes everything and is used for encoding individual values like query parameters.

Why is my space encoded as + or %20?

Both are valid. %20 is the standard URL encoding. + is used in application/x-www-form-urlencoded format (form submissions). Most servers accept both.

Can I encode non-English characters?

Yes, non-ASCII characters like Chinese, Arabic, or emoji are encoded using UTF-8 and then percent-encoded. For example, 你好 becomes %E4%BD%A0%E5%A5%BD.

Is this tool safe to use?

Yes, all encoding and decoding happens in your browser. Your data is never sent to any server.

Related Tools

Free Base64 Encoder Decoder Online - Encode & Decode Base64

Free online Base64 encoder and decoder. Convert text to Base64 and decode Bas...

Free Color Picker - HEX RGB HSL Converter & Palette Generator

Free online color picker with format conversion. Convert between HEX, RGB, HS...

Free Diff Checker - Text Compare Tool

Free online diff checker. Compare two text files side by side or inline. Find...

Free Hash Generator - MD5 SHA-256 SHA-512 HMAC Calculator

Free online hash generator. Calculate MD5, SHA-1, SHA-256, SHA-512 hashes. Ge...

Free JSON Formatter & Validator Online - Pretty Print JSON

Free online JSON formatter, validator, and beautifier. Format, minify, and va...

Free JWT Encoder / Decoder - Sign, Verify & Inspect Tokens

Free online JWT Decoder and Encoder. Decode, inspect, verify signatures, edit...

Free Lorem Ipsum Generator - Paragraphs, Sentences, Words

Free online Lorem Ipsum placeholder text generator. Generate paragraphs, sent...

Free Online QR Code Generator - Create Custom QR Codes

Free online QR code generator. Create QR codes for URLs, text, WiFi, vCards. ...

Free & Unlimited TikTok Video Downloader Without Watermark

Download any TikTok video without watermark online for free. Fast, secure, an...

Free Unix Timestamp Converter Online - Epoch Time Tool

Free online Unix timestamp converter. Convert epoch time to date, seconds to ...

Free UUID Generator Online - v1, v4, v5, v7 & Bulk Generate

Free online UUID/GUID generator. Generate UUID v1, v4, v5, v7 and Nil UUIDs. ...

Free Word Counter - Character & Text Analyzer

Free online word counter and text analyzer. Count words, characters, sentence...