Text Tools

Text Encoder/Decoder

Encode or decode UTF-8 text as Base64, URL-safe Base64, a URL component or HTML entities. Preview the result and copy or download it locally.

Your content stays on your device Free, with no account
The same text. A different form. Converted on your device

Up to 50,000 text units. Original text stays unchanged.
YOUR RESULT

Ready. Choose a format and convert your text.

Encoding is not encryption. Decoded markup stays plain text; nothing is opened or executed. This tool handles UTF-8 text, not binary files.

A FEW SIMPLE STEPS

How to use Text Encoder/Decoder

  1. Choose a format and select Encode or Decode.
  2. Paste plain text for encoding, or encoded text for decoding. Check the format hint for padding, plus-sign and entity rules.
  3. Select Encode text or Decode text. Invalid data shows a message instead of a partial result.
  4. Copy or download the result as TXT. Changing the input or options clears the previous output.
PRIVATE BY DESIGN

Why use this tool?

Your text is transformed entirely in your browser. The HTML entity library is self-hosted and the other formats use built-in browser APIs, so no uploads, external API, account or browser storage are needed. Decoded content is displayed as plain text.

Tool inputs stay in your browser. Only your theme preference is saved on this device.

A few things worth knowing

Is encoding the same as encryption?

No. Anyone can decode these representations. They do not provide secrecy, password protection or proof of authenticity. HTML entity encoding is also not a general-purpose sanitizer for every HTML or script context.

How does Base64 handle Unicode and binary files?

Encoding converts text into UTF-8 bytes before Base64. Decoding requires valid UTF-8 and reports invalid byte sequences rather than substituting damaged characters. A UTF-8 BOM is preserved as a character. This tool handles text, not images or arbitrary binary files.

What Base64 inputs are accepted?

Standard Base64 uses + and /; URL-safe Base64 uses - and _. URL-safe encoding omits padding. Decoding accepts valid padded or unpadded input and ignores ASCII whitespace. Invalid alphabet characters, malformed padding, impossible lengths and nonzero unused padding bits are rejected.

Does URL decoding turn + into a space?

No. It uses URL-component encoding and decoding, so a literal + stays +, while %20 decodes to a space. This is not application/x-www-form-urlencoded decoding, and it does not parse a complete URL or a query string into fields.

How are HTML entities handled?

The self-hosted he 2.0.0 library encodes HTML-sensitive and non-ASCII characters and decodes named or numeric HTML references in strict mode. Invalid references are rejected; valid references need their required semicolons. Decoding applies one layer only: < becomes <, not a less-than sign. Markup is shown as text and never executed.

What are the limits and line-ending rules?

Encoding accepts up to 50,000 UTF-16 text units; decoding accepts up to 500,000 to accommodate encoded expansion. Input is not truncated. Some emoji use multiple units. Browser textareas normalize pasted line endings to LF, and TXT exports use the displayed result. No output is saved when you leave or reload the page.