All processing happens locally in your browser. No data is sent to any server.
Decode
Encoding Reference
Hexadecimal
- Base 16 (0-9, A-F)
- Format: \x48 or 0x48
- 2 chars per byte
- Common in programming
URL Encoding
- Format: %XX
- RFC 3986 compliant
- Safe for URLs
- Space = %20 or +
HTML Entities
- Format: &#XX; (decimal)
- Or &#xHH; (hex)
- Named: & <
- Safe for HTML
Unicode
- Format: \uXXXX
- 4 hex digits
- For chars > 0xFFFF: \u{XXXXX}
- JavaScript/JSON safe
Base64 Standard
- Uses: A-Z, a-z, 0-9, +, /
- Padding: = (equals sign)
- RFC 4648 compliant
- ~33% larger than original
Base64 URL-safe
- Uses: A-Z, a-z, 0-9, -, _
- No padding or optional
- Safe for URLs and filenames
- Used in JWTs
0 characters
0 bytes
0 characters
File to Base64
Convert files to Base64 encoded strings. Maximum file size: 5MB.
Drag & drop a file here or click to select
Supported: Any file type up to 5MB
Base64 Reference
Standard Base64
- Uses: A-Z, a-z, 0-9, +, /
- Padding: = (equals sign)
- RFC 4648 compliant
- Common in email (MIME)
URL-Safe Base64
- Uses: A-Z, a-z, 0-9, -, _
- No padding or optional
- Safe for URLs and filenames
- Used in JWTs
Size Calculation
- Encoded size = ceil(n/3) * 4
- ~33% larger than original
- Every 3 bytes = 4 chars
- Padding fills to 4 chars
Common Uses
- Data URLs in HTML/CSS
- Email attachments (MIME)
- API payload encoding
- Configuration files
Supported Encodings
Base64
Standard & URL-safe
URL Encoding
%XX format
Hexadecimal
0x, \x, plain hex
HTML Entities
&name; {
Unicode Escape
\uXXXX, \UXXXXXXXX
Punycode
xn-- domains
ROT13
Letter rotation
Binary
0b or space-separated
Octal
\NNN format
JWT
JSON Web Token
Quoted-Printable
=XX format
ASCII85
<~ ~> format