MyAIUtility

URL Encoder/Decoder

Encode and decode URLs for safe transmission over the internet.

Encoding Types

encodeURIComponent

Encodes all special characters. Use for query parameters and values.

hello world → hello%20world

encodeURI

Preserves URL structure (/, :, @, etc.). Use for full URLs.

https://example.com/path → preserved

Common URL Encodings

%20

Space

!%21

Exclamation

#%23

Hash

$%24

Dollar

&%26

Ampersand

'%27

Single Quote

(%28

Left Paren

)%29

Right Paren

+%2B

Plus

,%2C

Comma

/%2F

Slash

:%3A

Colon

=%3D

Equals

?%3F

Question

@%40

At

About URL Encoding

URL encoding (also known as percent-encoding) converts characters into a format that can be safely transmitted over the internet.

Characters outside ASCII and reserved characters are replaced with a % followed by their hexadecimal value.