HTML entity, JSON string, C escape, quoted-printable and MIME encoded-word escaper
Encode or decode HTML entities, JSON strings, C-style escapes, quoted-printable bodies and RFC 2047 MIME encoded words as inert text.
Encode or decode HTML entities, JSON strings, C-style escapes, quoted-printable bodies and RFC 2047 MIME encoded words as inert text.
A quotation mark or a less-than sign in your text can look like an instruction to the app that reads it next. FluffyBench's Text escaper rewrites those characters in the spelling your destination expects, and turns escaped text back into plain words.
Limits The result is text to paste somewhere else. FluffyBench's Text escaper doesn't build a web page or send an email.
Every format has a few characters that mean something special. In a web page, a less-than sign starts a tag; in a JSON value, a quotation mark ends the text. Escaping writes those characters another way, so the next app reads them as plain text instead of as an instruction. It's a bit like putting a word in quotation marks when you're talking about the word itself: the reader sees "stop" without stopping.
So the right spelling depends on where your text is going. Here's one short message written for five destinations, with the From and To choices that make each one.
One message, five destinations
Is your text going into a web address instead? Addresses use their own rules, called percent-encoding, and FluffyBench's URL encoder handles those.
Here's how to turn Say "hi" <3 into a JSON string, step by step on a phone. Every other destination works the same way; only the From and To choices change.
For text on a web page, choose To: HTML entities. Each character that HTML would read as markup becomes a short code called a character reference, and the browser turns it back into the character on screen.
Here's a menu line with an ampersand, a less-than sign and a pound sign, on its way into a web page.
Text, its HTML entities, and what a visitor sees
These references are made for text between HTML tags. An attribute, a script or a link inside the page follows its own rules, so this mode isn't a safety filter for text you got from someone else.
Code works differently. A JSON string and C-style escapes both put a backslash in front of each special character, but only JSON wraps the whole value in quotes.
Here's a two-line note with a Windows folder and a quotation in it, spelled both ways. Notice the \\: a backslash in your text needs a backslash of its own.
One note as a JSON string and as C-style escapes
Got a JSON string and want the plain words back? Reverse the choices: From: JSON string and To: Text.
The JSON choices here handle one string value at a time. A whole JSON document, with its objects and lists, needs a different tool.
Email has its own rules, and the message body and the subject line follow different ones. For the body, choose From: Body text and To: QP, short for quoted-printable. Plain letters stay readable, and everything else becomes an equals sign followed by a two-character code for one byte.
Here's a two-line note with an accent and one very long first line.
A note as quoted-printable
Here's a shorter note encoded in FluffyBench's Text escaper.
To read an encoded body, or to check one before you send it, reverse the choices.
Attaching a file instead of typing a message? A file travels as Base64, which is a different job from escaping text.
A subject line is a single line at the top of the email, and it uses a different trick called a MIME encoded word. Choose From: Header text, then To: MIME B or MIME Q. Paste only the subject itself, not the word Subject: in front of it.
Here's one subject line with an accent and an emoji, in both styles.
A subject line as MIME B and MIME Q
A subject line can't hold a line break, so a two-line value gets a message instead of a result.
Header text with a line break, To: MIME B
Reading a subject that arrived as =?UTF-8?…? Choose From: Encoded words and To: Header text.
Decoding is strict: when the input isn't quite what From promises, FluffyBench's Text escaper tells you what's wrong instead of guessing.
The most common snag is a JSON string that lost a quotation mark in copying. FluffyBench's Text escaper points to where the string falls apart.
JSON string missing its closing quote
A few other messages you might see. C-style escapes reads the common backslash codes, such as \n, \t, \" and \\; hex, octal and Unicode codes like \x41 stop with a message, because they're outside that set. QP input has to be plain ASCII, with every other character already written as an equals code. Encoded words must be UTF-8 and need a space between them and any ordinary text.