UTF-7 Encoder / Decoder
Turn text into the 7-bit UTF-7 form of RFC 2152, or read UTF-7 back into text. ASCII stays readable; everything else travels as a modified-Base64 shift sequence.
Press Convert to see the encoded text.
UTF-7 keeps the ASCII characters of Set D (letters, digits, '(),-./:? and the space, tab, CR and LF) as single bytes, and optionally those of Set O (!"#$%&*;<=>@[]^_`{|}). Everything else is written as +, the UTF-16 big-endian code units in modified Base64 without = padding, then - where the next character would otherwise be read as part of the sequence. A literal + is +-. Decoding keeps 7-bit text outside a shift sequence, absorbs a terminating -, and refuses non-zero padding bits, an odd number of octets and an unpaired surrogate. IMAP uses a variant (RFC 3501) with & for the shift and , for the Base64 /; this page is the mail form only. Nothing is uploaded, stored or sent.