encoding a short string
- Text
- Numera
- Direction
- Encode
- URL safe variant
- No
ResultTnVtZXJh
Six bytes become eight characters, the 3 to 4 ratio
Open this exampleBase64 encoding and decoding, including the URL-safe variant. Base64 is an encoding, not encryption: anyone can decode it, so it hides nothing.
Also called: base64 encode decode, b64 converter.
TnVtZXJh. 6 characters in, 8 out, a 33.33% change. The standard alphabet uses plus and slash, which need escaping in a URL.
Base64 maps every three bytes to four printable characters, which is why encoded output is about a third larger than the input. It exists to carry binary data through channels that only accept text, not to conceal anything: decoding requires no key and takes no effort. The URL-safe variant replaces the plus and slash characters with minus and underscore so the result survives being placed in a URL or filename without escaping.
three bytes become four characters, which is why Base64 adds about a third to the sizeEach of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
ResultTnVtZXJh
Six bytes become eight characters, the 3 to 4 ratio
Open this exampleResultNumera
boundary: the round trip
Open this exampleFormula version 1.0.0 · definition 1.0.0 · India · Report a problem with this calculator