Text Encoding Tools

Input
Percent Encoding (URL Encoding)
Standard Base64
URL-Safe Base64
MIME Base64
Encoding Reference
Percent Encoding (URL Encoding)

Percent encoding (also known as URL encoding) converts characters into a format that can be safely transmitted over the internet in URLs. Each unsafe character is replaced with a percent sign (%) followed by two hexadecimal digits representing the character's ASCII/UTF-8 value.

Common Encoded Characters
CharacterEncodedDescription
  (space)%20Space character
!%21Exclamation mark
#%23Hash/pound sign
$%24Dollar sign
%%25Percent sign
&%26Ampersand
+%2BPlus sign
/%2FForward slash
Percent Encoding Use Cases
URL Query Parameters: Encoding parameter values in URLs like ?search=hello%20world.
Form Data: Encoding form submissions sent viaapplication/x-www-form-urlencoded.
OAuth & APIs: Encoding redirect URIs and callback URLs passed as parameters.
Specification

Base64 Encoding

Base64 converts binary data to ASCII text using 64 characters. It's used for embedding binary data in text formats.

Character Sets & Line Breaks
VariantCharacters 62-63PaddingLine Breaks
Standard+ /=None
URL-Safe- _NoneNone
MIME+ /=Every 76 chars
Base64 Use Cases
Standard Base64: Data URIs, JSON payloads, API responses, configuration files, and general binary-to-text encoding.
URL-Safe Base64: JWT tokens, OAuth parameters, URL query strings, filename encoding, and web API identifiers.
MIME Base64: Email attachments, SMTP transmission, HTTP headers, and legacy systems with line length limits.
Specifications
Base64 vs Percent Encoding
Base64Percent
PurposeBinary to textURL safety
Output Size~133%Variable
Use CaseEmbed dataURL parameters
© 2025 Brian Neradt. All rights reserved.