URL Encoder & Decoder
Percent-encode text for URLs, or decode encoded URLs back to plain text.
Base64 turns binary data into plain ASCII so it can travel safely through systems that only accept text. You will meet it in data URLs, email attachments, JSON web tokens and configuration files.
This tool encodes and decodes UTF-8 text, including emoji and non-Latin alphabets, and can produce URL-safe output for use in query strings.
Runs locally in your browser โ nothing is uploaded.
Standard Base64 uses + and / characters, which have special meanings in URLs. URL-safe Base64 replaces them with - and _ and can drop the trailing = padding.
The string is probably truncated, contains line breaks or spaces, or was encoded with a different padding. Remove any whitespace first and make sure you have the complete string.
This version handles text. For binary files, use a dedicated file-to-Base64 converter; pasting binary content as text usually corrupts it.