Tools/Encode / Decode

Encode / Decode

Encode or decode text in Base64, URL (percent-encoding), or HTML entity format. Free, private, and runs entirely in your browser.

Plain text

Examples

Base64
Hello, World!SGVsbG8sIFdvcmxkIQ==
URL
search query with spaces & symbols!search%20query%20with%20spaces%20%26%20symbols!
HTML
<script>alert("XSS")</script>&lt;script&gt;alert("XSS")&lt;/script&gt;

What is Text Encoding?

Text encoding converts characters into a specific format for safe transmission or storage. Base64 encoding represents binary data as ASCII text, making it safe for email and data URIs. URL encoding (percent-encoding) replaces unsafe characters with percent-sign sequences so they can be included in URLs. HTML encoding converts special characters like angle brackets and ampersands into entity references to prevent them from being interpreted as HTML markup.

When to Use This Tool

Use Base64 encoding for embedding images in CSS or HTML, encoding email attachments, or working with APIs that require Base64 input. Use URL encoding when building query strings, constructing API requests, or debugging URL parameters. Use HTML encoding to sanitise user input, prevent cross-site scripting (XSS), or display code snippets safely on web pages.