# Secure Java URL encoding and decoding

DevFeed: [Secure Java URL encoding and decoding](<https://devfeed.tech/articles/secure-java-url-encoding-and-decoding-7990.md>)

Original publisher: [Read original article](<https://snyk.io/blog/java-url-encoding-decoding/>)

Author: Jura Gorohovsky

Published: 2023-08-14T05:00:00Z

Content type: article

Language: en

Sources: [Blog RSS Feed | Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [ASCII](<https://devfeed.tech/topics/ascii.md>), [Security](<https://devfeed.tech/topics/security.md>), [Amazon API Gateway](<https://devfeed.tech/topics/amazon-api-gateway.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>)

Tags: [acquisition](<https://devfeed.tech/tags/acquisition.md>), [api](<https://devfeed.tech/tags/api.md>), [api-gateway](<https://devfeed.tech/tags/api-gateway.md>), [article](<https://devfeed.tech/tags/article.md>), [ascii](<https://devfeed.tech/tags/ascii.md>), [awareness](<https://devfeed.tech/tags/awareness.md>), [blog](<https://devfeed.tech/tags/blog.md>), [code-security](<https://devfeed.tech/tags/code-security.md>), [developer](<https://devfeed.tech/tags/developer.md>), [draftdotdev](<https://devfeed.tech/tags/draftdotdev.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [html](<https://devfeed.tech/tags/html.md>), [java](<https://devfeed.tech/tags/java.md>), [programming](<https://devfeed.tech/tags/programming.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [snyk-code](<https://devfeed.tech/tags/snyk-code.md>)

## AI overview

This article explains URL encoding and decoding in Java. It describes percent-encoding characters outside the permitted URL character set, clarifies that URL encoding is not encryption, and discusses use cases such as HTML form input, external API calls, and API gateways. It also explains parsing, interoperability, and security risks caused by unencoded URLs.

## Source excerpt

This article discusses Java, why URL encoding and decoding are important, and how to approach it properly.