Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Development

URL Encoder/Decoder

· Last updated:2025-09-23

URL encode and decode strings

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
URL32

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Development
Input types
text, select
Output type
text
Sample coverage
4
API ready
Yes

Overview

This tool converts text into percent-encoded strings for safe transmission in web addresses and decodes URI escape sequences back into standard text.

When to use

  • Escaping spaces, ampersands, or non-ASCII characters in query parameter values before constructing API requests.
  • Interpreting percent-encoded tracking tags, redirects, or query strings found in server access logs.
  • Sanitizing arbitrary user input before appending it as a parameter to an external URL.

How it works

  1. 1Enter or paste the string into the Text Input field.
  2. 2Set the Operation option to 'Encode' to generate percent-encoded characters, or 'Decode' to translate escape sequences.
  3. 3Review the output text to verify that target symbols and spaces were correctly converted or restored.

Use cases

  • Web development: Encoding query parameters with special characters to ensure HTTP GET requests parse correctly on the server.
  • Log analysis: Decoding obfuscated referrers, request paths, and search terms extracted from web server log entries.
  • Authentication routing: Inspecting percent-encoded callback and return-path URLs passed through OAuth and single sign-on flows.

Compare alternatives

  • Use HTML Entity Encoder/Decoder when escaping characters for HTML document markup or attributes rather than URL query strings and paths.

  • Use Base64URL Encoder/Decoder when handling token structures like JWTs that require URL-safe Base64 alphabet substitutions instead of percent-encoding.

  • Use Base64 Encoder/Decoder when converting text into standard Base64 format rather than escaping URI-reserved characters.

Who it's for

Best for

  • Preparing raw text values and query parameters for safe inclusion in HTTP URLs.
  • Translating percent-encoded URI strings from web logs or API payloads into readable text.
  • Inspecting how reserved and non-ASCII characters map to hexadecimal escape sequences.

Not ideal for

  • Escaping HTML tags or entities for webpage rendering.
  • Encoding binary data payloads into URL-safe Base64 or token representations.

Edge cases & common failures

  • Encoding an entire URL instead of individual parameter values

    Running a full URL with 'Encode' converts protocol delimiters ('://') and path separators ('/'), breaking the URL structure. Encode query values individually rather than the whole address.

  • Input text contains unencoded percent signs

    In Decode mode, a `%` not followed by two hexadecimal digits makes `decodeURIComponent` throw; the tool returns an error. Encode literal `%` as `%25` before decoding.

  • Double-encoded input strings

    Strings that have been encoded more than once (such as '%2520' representing a space) will only resolve one level per run. Check the decoded output and run another decode step if percent signs remain.

Examples

1. Encoding a search query with special characters

Frontend developer

Background

A developer needs to append a user search term containing reserved characters to a search endpoint.

Problem

Terms like 'pens & paper' break query string parsing if the ampersand is treated as a parameter delimiter.

How to use

Paste 'pens & paper' into Text Input and select 'Encode' under Operation.

Text Input: pens & paper, Operation: Encode

Outcome

pens%20%26%20paper

2. Decoding an OAuth redirect URL

Backend engineer

Background

An engineer is auditing incoming authentication logs containing redirect URLs passed as parameters.

Problem

The target URL is percent-encoded as 'https%3A%2F%2Fexample.com%2Fcallback', making it cumbersome to verify.

How to use

Paste 'https%3A%2F%2Fexample.com%2Fcallback' into Text Input and select 'Decode' under Operation.

FAQ

What does the Encode operation change?

It converts characters outside the standard unreserved URI set—such as spaces, reserved punctuation, and non-ASCII characters—into percent-encoded hexadecimal sequences like %20 or %26.

Should I encode the entire URL or just the query values?

Encode only the query parameter values or specific components. Encoding the full URL converts protocol separators like '://' and path slashes into escape sequences, making the link unclickable.

What happens if I decode text that has no encoded sequences?

The text remains unchanged because standard characters require no conversion.

How does the tool handle plus signs in query strings?

Standard URI decoding treats '%20' as a space; depending on context, '+' may be preserved as a literal plus sign rather than a space.

Can this tool encode non-ASCII characters or emojis?

Yes, non-ASCII characters and emojis are converted into their corresponding UTF-8 percent-encoded byte pairs.

Hub

Base, Radix, and Hex Encoding Tools

Convert text and bytes across Base variants, arbitrary radices, hex, and web escapes while checking reversible byte preservation.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Validation

URL Slug Samples

Collection of valid and invalid URL slug examples for testing (lowercase letters, numbers, hyphens, optional underscores)

Web Development

URL Query Analyzer Samples

Comprehensive collection of URLs with query parameters for testing URL parsing, encoding validation, and parameter extraction

Media

Copyright-Free MP3 Audio Samples

Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio

text-processing

Hex/Unicode Encoding Format Samples

Examples of hex (\xXX) and unicode (\uXXXX) escape sequence encoding formats

Development

HTML Entity Encoder/Decoder

Encode and decode HTML entities

Format Conversion

Base64 Encoder/Decoder

Encode and decode Base64 strings

Format Conversion

Base64URL Encoder/Decoder

Encode and decode Base64URL (URL-safe Base64 variant used by JWT/JWS/JWE), with conversions between standard and URL-safe Base64

Format Conversion

Caesar Cipher

Encode, decode, and brute-force the Caesar cipher with any shift (1–25), or print all 25 candidate decodings.

Text Input: https%3A%2F%2Fexample.com%2Fcallback, Operation: Decode

Outcome

https://example.com/callback

HTML Entity Encoder/Decoder
Base64URL Encoder/Decoder
Base64 Encoder/Decoder