Encoding
Encoding translates text into a transport spelling and back again. The family covers the base encodings people meet in configuration and APIs — Base64, Base32, Base58 and Ascii85 — plus URL percent-encoding, Punycode and IDN labels, quoted-printable mail bodies, UUencode and XXencode, and data URLs. Each pair has a decoder beside its encoder, so a value that arrived from somewhere else can be read rather than guessed at.
A second group is about escaping text for a particular host language or file format: JavaScript, Java, C#, SQL, XML, CSS and CSV each have their own rules, and the pages apply one language's rules rather than a generic backslash. Classical ciphers and transforms sit alongside them: Morse code, ROT13 and ROT47, and the UTF-16, ASCII and native2ascii conversions that older systems still emit.
Encoding is reversible by design and is not a security control. Base64, ROT13 and Morse hide nothing from anyone who knows the scheme, and the pages say so; encryption and password hashing live in the Crypto family instead. Everything here operates on the text you paste, and no value is stored after the page returns.
What you can do
- Encode and decode Base64, Base32, Base58 and Ascii85 text.
- Percent-encode a URL, or convert an internationalised domain to and from Punycode.
- Escape and unescape strings for JavaScript, Java, C#, SQL, XML, CSS or CSV.
- Translate text to and from Morse code, or apply ROT13 and ROT47.
- Move text between UTF-16, ASCII, native2ascii and hexadecimal spellings.
- Wrap text as a data URL or read the text back out of one.
Popular tasks
Every tool assigned to this category is listed here. The catalog's governance-domain filter is a different axis; to page through the same branch, use the filtered catalog.
Every Encoding tool
Base64 Image
Validate base64 image data URIs and read image metadata.
AND Binary Values
AND any number of binary values at once and read the result in decimal and binary.
Ascii85 Decoder
Decode Ascii85 online. Runs in your browser — paste the value and read the result immediately.
Ascii85 Encoder
Encode to Ascii85 online. Runs in your browser — paste the value and read the result immediately.
ASCII to native Converter
Decode native2ascii \uXXXX escapes back to readable text in your browser. Malformed escapes are reported rather than dropped.
Base32 Decoder
Decode Base32 online. Runs in your browser — paste the value and read the result immediately.
Base32 Encoder
Encode to Base32 online. Runs in your browser — paste the value and read the result immediately.
Base58 Decoder
Decode Base58 online. Runs in your browser — paste the value and read the result immediately.
Base58 Encoder
Encode to Base58 online. Runs in your browser — paste the value and read the result immediately.
Base64 Decoder
Decode Base64 online. Runs in your browser — paste the value and read the result immediately.
Base64 Encoder
Encode to Base64 online. Runs in your browser — paste the value and read the result immediately.
Base64 to XML
Decode Base64 back to an XML document in your browser. URL-safe characters are accepted; invalid UTF-8 is reported.
Base64 to YAML
Decode Base64 back to YAML, including the indentation and trailing newline a manifest needs to parse.
Convert Code Points to UTF8
Create UTF-8 characters from Unicode code point values, in hex or decimal, and see the byte count.
Count One Bits
Count the 1 bits in each pasted binary value and the total across the list.
Count Zero Bits
Count the 0 bits in each pasted binary value and the total across the list.
CSS Escape Converter
Escape non-ASCII text for CSS in your browser. Characters become hex escapes with the required trailing space, ready for content and selectors.
CSS Unescape Converter
Decode CSS hex escapes back to text in your browser. One to six hex digits are accepted, with or without the terminating space.
CSV Escape
Quote a single CSV field per RFC 4180: wrap it and double any inner quote, so a comma or newline survives.
CSV Unescape
Turn one quoted CSV field back into its value: strip the surrounding quotes and un-double the inner ones.
Custom Base Decoder
Decode a custom-base value back to text in your browser. The same base and alphabet are required, and an unknown digit is named.
Custom Base Encoder
Encode text in any base from 2 to 62 with your own alphabet, in your browser. BigInt arithmetic keeps large values exact.
Data URL to Text
Decode a data URL back to its text in your browser. Base64 and percent-encoded payloads are both accepted; a bad header is reported.
Convert Data URL to UTF8
Decode a data URI into UTF-8 text, base64 or percent-encoded, with the byte count shown.
C# String Escape
Turn text into a C# verbatim string literal:@"..." with doubled quotes. The idiom for paths and regex.
C# String Unescape
Turn a C# string literal back into text. Accepts @"verbatim" with doubled quotes and a regular "escaped" literal.
JavaScript unescape() Decoder
Decode legacy JavaScript escape() output in your browser. Both %XX bytes and %uXXXX code units are restored in one pass.
JavaScript escape() Encoder
Apply the legacy JavaScript escape() function in your browser. Code units become %XX or %uXXXX exactly as the old API produced them.
Hex String Converter
Encode text to hex strings or decode hex back to text.
Convert HTML Entities to UTF8
Decode HTML entities back into UTF-8 text, named and numeric, with unknown names reported.
IDN Decoder
Convert an IDN Domain to Unicode online, in your browser, with a real worked example.
IDN Encoder
Convert a Domain to IDN (Punycode) online, in your browser, with a real worked example.
Java String Escape
Escape text for a Java string literal: quotes, backslashes, control characters, and \uXXXX for non-ASCII.
Java String Unescape
Turn Java string escapes back into text: \n, \t, \" and \uXXXX. An unknown escape is reported, not guessed.
JavaScript to Unicode Escape
Turn text into JavaScript \uXXXX escapes in your browser. Every UTF-16 code unit is escaped, including surrogate pairs.
Morse Code Translator
Encode text to Morse code and decode Morse back to text.
Morse Code to Text
Decode Morse Code online. Runs in your browser — paste the value and read the result immediately.
native2ascii Converter
Convert a properties file to native2ascii in your browser. Only characters outside ASCII are escaped, in the JDK's lowercase \uXXXX form.
Convert Netstring to String
Read length-prefixed netstrings back into text.
Punycode Decoder
Decode Punycode online, in your browser, with a real worked example.
Punycode Encoder
Encode to Punycode online, in your browser, with a real worked example.
Quoted-Printable Decoder
Decode quoted-printable text back to UTF-8 in your browser. Soft line breaks are joined and an invalid =XX escape is reported, not guessed.
Quoted-Printable Encoder
Encode text as quoted-printable (RFC 2045) in your browser. Non-ASCII bytes become =XX escapes and long lines use soft breaks.
Remove Combining Characters
Strip diacritical marks from Unicode text by decomposing it first.
Remove Duplicate Spaces
Collapse every run of two or more spaces or tabs into one space.
ROT13 Encode / Decode
Apply ROT13 online. Runs in your browser — paste the value and read the result immediately.
ROT47 Encode / Decode
Apply ROT47 online. Runs in your browser — paste the value and read the result immediately.
Shift Binary Left
Move the bits of a binary value left by a number of positions.
Shift Binary Right
Move the bits of a binary value right, dropping the low bits.
SQL Escape
Escape apostrophes for a SQL string literal by doubling them. Runs in your browser; nothing is uploaded.
SQL Unescape
Turn a doubled SQL apostrophe back into one, so a value copied out of a statement reads normally again.
String Obfuscator
Obfuscate text with a key in your browser and restore it with the same key. Keyed XOR spelled as hex; nothing is uploaded and nothing is stored.
Convert String to Netstring
Wrap text in a netstring: byte length, colon, payload, comma.
Text to Data URL
Turn text into a base64 data URL in your browser. Set the MIME type and paste the result into CSS, HTML or JSON.
Text to Morse Code
Convert Text to Morse Code online. Runs in your browser — paste the value and read the result immediately.
Unicode Escape to JavaScript
Decode JavaScript \uXXXX escapes back to text in your browser. Surrogate pairs are joined and a malformed escape is reported.
Convert Unicode to UTF-32
Print the UTF-32 code point of every character in the text.
UTF-16 Decoder
Decode UTF-16 Hex online. Runs in your browser — paste the value and read the result immediately.
UTF-16 Encoder
Encode Text as UTF-16 Hex online. Runs in your browser — paste the value and read the result immediately.
Convert UTF8 to Code Points
Extract the Unicode code points behind pasted text, one U+XXXX value per character, with byte counts.
Convert UTF8 to Data URL
Wrap text in a data URL, base64 or percent-encoded, with the media type of your choice.
Convert UTF8 to HTML Entities
Encode text as HTML entities, named for Latin characters and numeric for everything else.
UUdecode
UUdecode Text online. Runs in your browser — paste the value and read the result immediately.
UUencode
UUencode Text online. Runs in your browser — paste the value and read the result immediately.
XML Escape
Escape XML special characters (&, <, >, quotes and apostrophes) as entities. Runs in your browser, no upload.
XML to Base64
Encode an XML document as Base64: UTF-8 bytes first, so an accented attribute value round-trips.
XML Unescape
Turn XML entities back into characters: named entities and numeric & / & references. Runs in your browser.
XML URL Decode
Turn a percent-encoded XML document back into readable XML. A malformed escape is reported, not dropped.
XML URL Encode
Percent-encode an XML document so it survives a query string, a form field or a header. Nothing is uploaded.
XXdecode Decoder
Decode XXencode back to text in your browser. Each line is checked against the published alphabet, and a bad character is named.
XXencode Encoder
Encode text as XXencode in your browser: 45-byte lines, the +-0-9A-Za-z alphabet and a + terminator, so no backticks reach the wire.
YAML to Base64
Encode a YAML document as Base64 for a Kubernetes secret, a CI variable or an attachment. Nothing is uploaded.
YAML URL Decode
Turn a percent-encoded YAML document back into YAML, restoring indentation and line breaks exactly.
YAML URL Encode
Percent-encode a YAML document for a query string or a form field, with indentation and colons preserved after decoding.