← All Tools
Developer Tool

URL Encoder & Decoder

Encode special characters for safe URL transmission, decode percent-encoded strings, and parse URL components.

Original URL / Text
Encoded URL
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Den%26tags%3Da%2Cb%2Cc

URL Breakdown

Protocolhttps:
Hostexample.com
Path/search
Query String?q=hello%20world&lang=en&tags=a,b,c
Hash / Fragment
Query Parameters3 params
q=hello world
lang=en
tags=a,b,c

What is URL Encoding?

URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted over the internet. Characters like spaces, ampersands, and slashes are replaced with a % followed by their hexadecimal ASCII code — for example, a space becomes %20.

encodeURIComponent vs encodeURI

Use encodeURIComponent for encoding individual query parameter values — it encodes nearly all special characters including &, =, and +. Use encodeURI for encoding a full URL while preserving its structure (slashes, colons remain intact).

Related Tools

View all tools →
📋
Live
JSON Formatter
Beautify, validate, minify and explore JSON with tree view, syntax highlighting and error detection.
🔐
Live
Base64 Encode / Decode
Encode text or files to Base64, decode Base64 strings. Supports UTF-8, URL-safe mode and image preview.
🗜️
Live
HTML Minifier
Compress HTML by removing whitespace, comments and optional tags. See exact byte savings instantly.
Live
CSS Minifier
Minify CSS by collapsing whitespace, shortening hex colors and removing redundant semicolons.
📄
Live
PDF Converter
Convert documents between PDF, Word, and image formats directly in your browser — no uploads.
🎨
Live
Color Palette Gen
Generate accessible color palettes from a single hex. Export to CSS, Figma, or Tailwind format.
🔑
Live
AES Encrypt/Decrypt
Free online AES encryption and decryption tool. Securely encrypt and decrypt your data in the browser.
📋
Live
JSON Formatter Suite
Beautify, validate, minify and explore JSON with tree view, syntax highlighting and error detection.
👁️
Live
JSON Viewer
Explore JSON in an interactive tree view with expand/collapse functionality.
⚖️
Live
JSON Diff
Compare two JSON objects and see detailed differences highlighted.
Live
JSON Validator
Validate JSON syntax and check against JSON Schema.
📊
Live
JSON to CSV
Convert JSON array of objects to CSV format for Excel and spreadsheets.
🔍
Live
JSONPath Query
Query and extract data from JSON using JSONPath expressions.

Frequently Asked Questions

Everything you need to know about using the URL Encoder/Decoder.

URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a safe format. Each unsafe character is replaced by a % sign followed by its two-digit hexadecimal ASCII code. For example, a space becomes %20, and & becomes %26.