---
title: "What is percent-encoding?"
term: "Percent-encoding"
description: "Percent-encoding, also called URL encoding, is a method of representing characters in a URL by replacing them with a percent sign followed by two hexadecimal digits, such as %20 for a space."
url: "https://glossary.io/percent-encoding/"
published: "2026-11-22T20:42:10.095Z"
updated: "2026-11-22T20:42:10.095Z"
aliases:
  - "URL encoding"
topics:
  - "Web standards and protocols"
wikidata: "https://www.wikidata.org/wiki/Q1046948"
---

# What is percent-encoding?

**Definition:** Percent-encoding, also called URL encoding, is a method of representing characters in a URL by replacing them with a percent sign followed by two hexadecimal digits, such as %20 for a space.

**Also known as:** URL encoding

URLs can only contain a limited set of ASCII characters, and some characters, such as ?, &, = and #, have special meanings. Percent-encoding lets those characters, spaces and non-English text be included safely. Characters outside ASCII are first converted to UTF-8 bytes, and each byte is encoded, so the letter é becomes %C3%A9.

Web developers deal with percent-encoding when building query strings, redirects and share links, such as a share button that passes a page's title and URL to a social network, and [JavaScript](https://glossary.io/javascript/) provides the encodeURIComponent() function for this. Forgetting to encode values can break links or [UTM parameters](https://glossary.io/utm-parameters/), while encoding a value twice produces strings like %2520.

## Percent-encoding resources

- [Percent-encoding on Wikipedia](https://en.wikipedia.org/wiki/Percent-encoding)

## Related terms

- [JavaScript](https://glossary.io/javascript/)
- [UTM parameters](https://glossary.io/utm-parameters/)

**Topic:** [Web standards and protocols](https://glossary.io/topics/web-standards/)

## Cite this definition

- APA: What is percent-encoding? (2026, November 22). Glossary. https://glossary.io/percent-encoding/
- MLA: “What Is Percent-Encoding?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/percent-encoding/.
- Chicago: “What Is Percent-Encoding?” Glossary. Coywolf. November 22, 2026. https://glossary.io/percent-encoding/.

Published November 22, 2026.
