CalcoWorks

Last updated · CalcoWorks

Overview

About URL Encoder / Decoder

Query strings break when spaces, ampersands, and unicode hit an unescaped URL. CalcoWorks URL Encoder percent-encodes reserved characters so links survive browsers, analytics redirects, and API gateways. Decode flows in the same family of tools help when reading noisy access logs.

Developers build redirect targets, OAuth state params, and search URLs with multi-word queries. Marketers debug UTM links that snapped at an unprotected ampersand. Pair with Character Counter because encoding increases length, and with QR Generator when the final URL must remain scannable and short enough.

Encoding is not a security boundary — it is syntax safety. Do not encode secrets and expect confidentiality. Decode when reading logs filled with percent-encoded spaces and braces.

Encode parameter values, not the entire URL with its structural delimiters, unless the whole string is itself a single value. Avoid double-encoding during OAuth redirect construction — verify by decoding once. After encoding, click the assembled link and confirm the server sees the intended decoded value. Watch length growth for gateways with hard URL caps. Create a shared library helper once the encoding rules are clear so humans stop hand-encoding in browsers during incidents late at night.

Lock encoding helpers in application code after this tool helped you discover the correct form, then stop hand-encoding during incidents. Manual encoding late at night is how double-encoding and broken OAuth redirects keep returning.

Add regression tests that assert both encoding and decoding of your hardest parameter, including unicode and reserved punctuation. One locked fixture here prevents an entire class of redirect bugs when frameworks upgrade.

Encoding bugs cluster around redirects, webhooks, and analytics. Anytime you touch those areas, add a fixture that includes spaces, unicode, and reserved punctuation, then assert the round trip. Keep this page bookmarked for emergencies, but prefer unit-tested helpers for anything that ships. Bookmark your language’s official encode helper docs next to this page so emergencies end with a committed fix rather than another manual paste.

Benefits

  • Percent-encodes unsafe URL characters
  • Prevents broken query strings
  • Useful for OAuth and redirect params
  • Helps UTM link assembly
  • Free encoding and decoding utility
  • Pairs with character counting
  • Clipboard-friendly for API debugging
  • Supports international query text
  • Works without writing ad-hoc replace maps
  • Clarifies encode versus encrypt for juniors

Use cases

  • Search query URLs with spaces
  • OAuth redirect URI packing
  • UTM campaign link repair
  • API filter query parameters
  • Mailto body encoding sketches
  • Logging percent-decoded paths
  • QR destination preparation
  • CMS link field sanitising
  • Webhook callback URL building
  • International slug experiments

Examples

  • Example 1

    Spaced query

    hello world becomes percent-encoded in a q parameter.

    Preview: open URL Encoder / Decoder and recreate this scenario with your numbers.
  • Example 2

    UTM repair

    Campaign name with spaces encoded so utm_source stays intact.

    Preview: open URL Encoder / Decoder and recreate this scenario with your numbers.
  • Example 3

    Redirect URI

    Callback URL encoded as a query value.

    Preview: open URL Encoder / Decoder and recreate this scenario with your numbers.
  • Example 4

    Log decode

    Percent-encoded braces decoded back to readable JSON markers.

    Preview: open URL Encoder / Decoder and recreate this scenario with your numbers.

How to use URL Encoder / Decoder

  1. 1

    Open URL Encoder

    Open Developer Tools then URL Encoder.

  2. 2

    Paste raw string

    Provide the parameter value or URL piece.

  3. 3

    Encode

    Generate the percent-encoded output.

  4. 4

    Assemble URL

    Join with ampersands and equals carefully — encode values, not delimiters twice.

  5. 5

    Count length

    Use Character Counter if gateways cap URL size.

  6. 6

    Decode logs

    Decode when reading encoded access logs.

  7. 7

    Test click

    Open the final link in a browser.

Frequently asked questions

Related tools

Suggested tools

Popular tools

Browse calculators, PDF tools, developer tools, and image tools.