Encode padded Base64URL
printf '%s' 'Hello?!!' | basenc --base64url --wrap=0Requires GNU basenc. Uses - and _ instead of + and /, and retains required = padding.
Output: SGVsbG8_ISE=
URL-safe encoding for text, files and token segments. Processed locally in your browser.
Preview limited to 64 Ki characters. Copy and save include the full result.
Ready. Your data stays in this browser.
UTF-8 text · files up to 10 MiBCopy a GNU/Linux command and run it locally. Static examples, independent of your input.
printf '%s' 'Hello?!!' | basenc --base64url --wrap=0Requires GNU basenc. Uses - and _ instead of + and /, and retains required = padding.
Output: SGVsbG8_ISE=
printf '%s' 'SGVsbG8_ISE=' | basenc --base64url --decodeUse padding when required by the byte length. An unpadded JWT segment may need padding restored before GNU basenc can decode it.
Output: Hello?!!
Base64URL replaces the standard + and / characters with - and _, making encoded bytes easier to use in URLs and filenames. The URL-safe preset includes padding when needed. Choose JWT segment for the unpadded JWS convention.
JWT segments use Base64URL without padding. Decode one segment at a time. Decoding a token does not verify its signature or prove that it can be trusted.
RFC 4648 Base64 and Base64URL, JWT padding, MIME line breaks, PEM envelopes, and strict decoding explained with practical presets.
02What Base64 protects, what it does not, and how to handle sensitive data.
03Standard vs. URL-safe, padding, and the characters that trip you up.
04Useful Base64 snippets for JavaScript, Python, and your command line.
05Copy practical GNU/Linux Base64 commands for text, binary files, UTF-8 and Base64URL. Understand line wrapping, padding and invalid input errors.
06Understand why Base64 is used in JSON APIs, email, JWTs, certificates and Kubernetes. Learn its benefits, size overhead and when to send raw bytes instead.
No. This application converts in browser memory and does not transmit or save your input. The hosting provider receives ordinary page-request metadata when serving the website. Copying and downloading place data on your device. Read the full privacy explanation.
Yes. Text is encoded as UTF-8, including emoji and non-Latin scripts. Files use their original bytes. Raw data is limited to 10 MiB; encoded input can be up to 20 MiB. Binary output can be downloaded without opening or executing it.
After the converter and its scripts load, you can keep converting in the open tab without a connection. Reloading offline is not guaranteed. You can also run the command-line examples or self-host the source.
No. Base64 is reversible encoding with no secret key. Anyone can decode it. Use appropriate encryption and access controls for confidential data.
Use Ctrl + Enter (Command + Enter on macOS) to convert. Press Escape while focused inside the converter to clear input and output. Every control works with the keyboard.