Base64 Encode Decode
Encode and decode Base64 strings with full UTF-8 Arabic and emoji support, and convert small images and icons to Base64 Data URLs for direct inline embedding in HTML and CSS without server round-trips.
Encode text as Base64 or decode a Base64 value.
Base64 Encode Decode
Loading the interactive workspace…
How to use this tool
Step 1
Choose UTF-8 Text mode or File to Data URL mode.
Step 2
Enter your text or pick a local icon or image file.
Step 3
Click Convert to view the encoded or decoded output.
Step 4
Copy the Base64 string or full Data URL with a single click.
Limits and notes
Recommended for icons and assets up to 5 MB to keep DOM rendering and browser memory responsive.
- Embed SVG and PNG icons directly inside CSS stylesheets
- Encode Arabic and multilingual strings safely for API payloads
- Decode base64 authentication tokens and payloads
- Inline web fonts into single-file HTML distributions
Example: UTF-8 text with emoji → Clean Base64 string that decodes without character corruption
Recommended Next Step for Your Workflow
Continue editing and processing your files locally with these connected utilities:
Cryptographic Hash Generator
Generate SHA-256 and SHA-512 hashes instantly via Web Crypto API.
JSON Formatter & Minifier
Beautify or minify JSON payloads for optimal API transfer.
Cryptographic Password Generator
Generate secure, high-entropy passwords with hardware randomness.
Frequently Asked Questions
Why do standard Base64 tools corrupt Arabic characters?
Standard btoa only accepts single-byte Latin1 characters. Our engine uses TextEncoder and TextDecoder to handle multi-byte UTF-8 sequences natively.
What is the benefit of a Data URL for web assets?
Data URLs eliminate extra HTTP network requests by bundling small image assets directly inside stylesheet or HTML files.
Does Base64 encoding increase file size?
Yes. Base64 encoding adds approximately 33% overhead, which is why it is recommended primarily for small icons and fonts.