Data URL Encode & Decode
Turn text into a data: URL (base64) and back. This tool does both encode and decode on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
Hello
Example Output
data:text/plain;base64,SGVsbG8=
How to Use
- 1Choose Encode or Decode mode at the top.
- 2Type or paste your text into the Input field.
- 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
- 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.
About Data URL
A Data URL (the data: scheme) embeds content directly inside a URL, instead of linking to an external file. The format is: data:[mediatype][;base64],<data>.
How it works: this tool encodes your text into a Base64-based data URL (data:text/plain;base64,...). On decode, it parses the scheme, detects whether it is base64 or percent-encoded, and returns the content.
Data URLs are useful for embedding small images, fonts, or text directly in HTML/CSS to reduce network requests. For large files, linking a separate file is usually better.
FAQ
Can this Data URL tool both encode and decode?
Yes. This is a single page with a toggle — use Encode mode to transform text, and Decode mode to reverse it. No need for two separate pages.
Is my data sent to a server?
No. Data URL is processed entirely in your browser. The text you enter never leaves your device.