47 characters, 47 B
64 characters, 64 B
Related tools
- Unicode PickerSearch a curated set of Unicode symbols, arrows, math operators, Greek letters, and HTML entities, and copy any of them.
- Mojibake FixerRepair garbled text like é and ’ back to the UTF-8 it was meant to be.
- NATO Phonetic AlphabetSpell out any text using the NATO phonetic alphabet, or three other military and telecom spelling alphabets, in either direction.
- Invisible CharactersReveal zero-width characters, BOMs, non-breaking spaces, bidi controls, and stray line endings in pasted text.
- Cipher ToolEncode and decode text with Caesar, ROT13, ROT47, Atbash, Vigenere, Affine, and Rail fence ciphers, plus a Caesar brute force scanner.
- Morse Code TranslatorTranslate text to and from Morse code live, play it as audio at any speed with Farnsworth spacing, download a WAV, and key it by hand.
What it does
A two way encoder and decoder for over thirty formats. Plain text sits on the left, its encoded form on the right, and both sides are editable: type on the left to encode, paste on the right to decode. It covers Base64 and Base64url, URL percent encoding in four flavors, HTML and XML entities, JSON, C, Python, Java and JavaScript string escapes, hex, shell, SQL, CSV and LDAP quoting, Base32, Base58, Ascii85, uuencode, quoted-printable, ROT13, Morse code, and punycode. Drop a file to Base64 or hex encode its raw bytes, and paste Base64 that holds an image or other file to preview it and download it back.
How to use it
Pick an encoding from the quick buttons (Base64, URL, HTML, JSON string, Hex, Unicode) or search the full list. Type or paste on either side and the other side updates as you go. Base64 has switches for the URL-safe alphabet, padding, and line wrap; URL encoding lets you choose component, whole URL, form, or every byte. When a decode fails, the message names the line and column of the offending character and a button selects it for you. Swap applies the conversion again, which is how you peel off a second layer of encoding.
Why this one
Most encoder sites handle one format per page, make you flip a direction switch, choke on Base64 that is wrapped or missing its padding, and answer bad input with a bare error or silent garbage. This one converts in both directions at once, forgives wrapped, unpadded, URL-safe and data URL Base64, tells you exactly which character broke a decode, and handles files as well as text. It all runs in your browser: your files and inputs never leave your device.
FAQ
- How do I decode Base64 back into an image or a file?
- Choose Base64 and paste the encoded text into the right-hand box. A whole data URL works too. If the bytes are an image, PDF, ZIP, font or other recognized file rather than text, a card appears under the box naming the type and size, with a preview for images and a button that downloads the original file.
- What is the difference between the URL encoding kinds?
- Component encoding (encodeURIComponent) escapes everything except unreserved characters and is right for a single query parameter or path segment. Whole URL encoding (encodeURI) leaves structure characters such as / and ? alone. Form encoding matches application/x-www-form-urlencoded, where a space becomes + instead of %20. Every byte percent encodes each byte, including letters.
- Why does my Base64 fail to decode on other sites but work here?
- Strict decoders reject line breaks, missing = padding, and the - and _ characters of the URL-safe alphabet. This tool accepts all of those, plus a data: prefix, under either Base64 option. If something still fails, the error points at the exact line and column, so a stray space, quote or truncated ending is easy to find.
Keyboard shortcuts: press ? anywhere on this page to see them.