Conversion Calculators

URL Encode / Decode

Use this URL encode / decode calculator to convert compatible units or encoded values for URL encode / decode.

Primary answer
Output text
Inputs to verify
Operation, Text, and Encoding variant
Use type
Use as a direct calculation check.
Keyword intent
URL encode / decode calculator

Calculator

URL Encode / Decode

Calculates output text from operation, text, encoding variant. Defaults are filled in so you can review a working example before changing inputs.

Encode text for a URL component or decode percent-encoded text.

Plain text for encode mode, or percent-encoded text for decode mode. Empty text is valid.

Component mode uses %20 for spaces. Form mode uses + for spaces.

Result

Result reflects the current submitted inputs.

  • Risk A
  • Reviewed 2026-05-26
  • 3 sources
Output texthello%20world
UTF-8 byte length11 bytes
Character count11 chars
Output length13 chars
OperationEncode as RFC 3986 component
  • This utility encodes and decodes text payloads, not complete URL syntax.
  • Component mode preserves only RFC 3986 unreserved characters.
  • Form mode uses application/x-www-form-urlencoded space-as-plus behavior.
  • Decode mode rejects incomplete percent triplets, non-hex triplets, and non-UTF-8 byte sequences.

Accuracy notes

Risk level
A
Reviewed
2026-05-26
Sources
3
Primary result
Output text

Formula logic is kept in a pure calculator module with fixtures, source notes, and page-visible assumptions.

What the result means

Output text is the number to carry forward from this URL encode / decode calculation. Encoded URL text or decoded UTF-8 text. Read the converted value first, then verify the source unit, target unit, and factor before reusing the number. Use UTF-8 byte length, character count, and output length to explain why output text moved when an input changed. Keep the original value next to the converted value when using it in a workflow.

Output textEncoded URL text or decoded UTF-8 text.
UTF-8 byte lengthByte length of the decoded text payload.
Character countUnicode code point count of the decoded text payload.
Output lengthJavaScript string length of the output text.

Use the result this way

  1. Start with Output text, then use supporting outputs only to explain the primary answer.
  2. Verify operation, text, and encoding variant before copying the result.
  3. Choose the mode or method first because it can change which formula is applied.
  4. Keep the original value next to the converted value when using it in a workflow.

User job

How to use this calculator

Use URL Encode / Decode when you need output text, then use utf-8 byte length and character count to check the context for unit checks, engineering notes, recipes, travel, shopping, and measurement cleanup.

Best for

  • Converting compatible units
  • Auditing the factor used for a repeated conversion
  • Reviewing a default example before entering your own operation and text.

Check before relying

  • Make sure the source and target units measure the same kind of quantity.
  • This utility encodes and decodes text payloads, not complete URL syntax.
  • Component mode preserves only RFC 3986 unreserved characters.
  • Source context: RFC Editor, reviewed 2026-05-26.

Next useful step

  • Base64 Encode / DecodeUse next when the developer utility comparison needs base64 encode / decode inputs such as operation and text.
  • Binary CalculatorUse next when the developer utility task needs decimal instead of output text.
  • Hex CalculatorUse next when the developer utility task needs decimal instead of output text.

Formula

Encode UTF-8 bytes as uppercase percent triplets outside the selected safe set, or decode strict percent triplets back to valid UTF-8 text. Key assumptions: This utility encodes and decodes text payloads, not complete URL syntax. Component mode preserves only RFC 3986 unreserved characters. Form mode uses application/x-www-form-urlencoded space-as-plus behavior.

  • Encode UTF-8 bytes as uppercase percent triplets outside the selected safe set, or decode strict percent triplets back to valid UTF-8 text.
  • This utility encodes and decodes text payloads, not complete URL syntax.
  • Component mode preserves only RFC 3986 unreserved characters.
  • Primary source context: RFC Editor.

Inputs

Enter operation, text, and encoding variant for unit checks, engineering notes, recipes, travel, and measurement cleanup. Before calculating, choose the mode or method first because it can change which formula is applied. Operation: Encode text for a URL component or decode percent-encoded text. Text: Plain text for encode mode, or percent-encoded text for decode mode. Empty text is valid. Encoding variant: Component mode uses %20 for spaces. Form mode uses + for spaces.

OperationEncode text for a URL component or decode percent-encoded text.
TextPlain text for encode mode, or percent-encoded text for decode mode. Empty text is valid.
Encoding variantComponent mode uses %20 for spaces. Form mode uses + for spaces.

Example

Using the default inputs, URL Encode / Decode returns output text of hello%20world. Adjust operation, text, and encoding variant to match your own scenario.

FAQ

How is output text calculated here?

Encode UTF-8 bytes as uppercase percent triplets outside the selected safe set, or decode strict percent triplets back to valid UTF-8 text. The first assumption to check is: This utility encodes and decodes text payloads, not complete URL syntax.

What does Output text mean for URL encode / decode?

Read the converted value first, then verify the source unit, target unit, and factor before reusing the number. Secondary values such as UTF-8 byte length, character count, and output length are there to explain the primary answer, not to replace it.

What should I enter for Operation?

Encode text for a URL component or decode percent-encoded text. Choose the mode or method first because it can change which formula is applied.

How does Text change output text?

Plain text for encode mode, or percent-encoded text for decode mode. Empty text is valid. Changing it can alter output text because the formula uses the submitted inputs together. Also compare source unit, target unit, dimension compatibility, exchange or conversion rate, and rounding precision.

Why does the URL encode / decode example show hello%20world for output text?

The default inputs produce hello%20world for output text. Treat that as a format and scale check, then replace every default value with your own inputs.

How do I avoid a URL encode / decode unit-direction mistake?

Keep the original value beside the converted value, confirm both units measure the same quantity, and check whether rounding is acceptable for the task.

Sources

Last reviewed: 2026-05-26

  • Reviewed 2026-05-26
    RFC 3986: Uniform Resource Identifier (URI): Generic SyntaxRFC Editor. Strict component encoding that preserves only RFC 3986 unreserved characters.
    Scope
    URI percent-encoding, reserved characters, and unreserved character set.
    Supports
    Strict component encoding that preserves only RFC 3986 unreserved characters.
  • Reviewed 2026-05-26
    URL StandardWHATWG. Form variant encoding and decoding behavior.
    Scope
    Percent-encode sets and application/x-www-form-urlencoded space-as-plus behavior.
    Supports
    Form variant encoding and decoding behavior.
  • Reviewed 2026-05-26
    Encoding StandardWHATWG. Text-to-byte and byte-to-text assumptions for this URL encoding utility.
    Scope
    UTF-8 encoding and decoding behavior used by web platform TextEncoder and TextDecoder.
    Supports
    Text-to-byte and byte-to-text assumptions for this URL encoding utility.