jarvisbox

Encode / Decode

Convert between Base64, URL encoding, HTML entities, and hexadecimal.

100% in your browser. Your file never leaves your device.

Type or paste text above, then click Encode or Decode.

Why use an encoder / decoder?

Developers regularly need to encode and decode data when working with APIs, web forms, email protocols, and data serialisation. Getting the encoding wrong causes bugs that are hard to trace — a misencoded URL parameter silently breaks a request, and an HTML-unsafe string can open XSS vulnerabilities. Having a quick, private browser tool lets you verify encodings without pasting sensitive data into a public site.

How to use

Select the encoding format using the tabs at the top. Paste your text in the input box and click Encode to transform it, or click Decode to reverse it. The result appears in the output box. An error message is shown if decoding fails — for example, if the input is not valid Base64. Click Copy to put the output in your clipboard.

常见问题

When would I use Base64 encoding?
Base64 encodes binary or arbitrary data as plain ASCII text, making it safe to include in JSON, XML, email, or URLs. Common uses include embedding images in CSS, encoding JWT payloads, and passing binary data through text-only channels.
What is the difference between URL encode and Base64?
URL encoding (percent-encoding) replaces unsafe URL characters with %XX sequences and is used specifically for query strings and path components. Base64 converts arbitrary bytes to a 64-character alphabet and is used for binary-to-text encoding in many protocols.
What does HTML entity encoding do?
HTML entity encoding replaces characters like <, >, &, and " with their named or numeric equivalents (&lt;, &gt;, &amp;, &quot;). This prevents cross-site scripting (XSS) when displaying user-provided text in HTML.
反馈这个工具的问题