URL Encoder and Decoder
Percent-encode text for URLs or decode it back, with clear errors and a breakdown of every URL part and query parameter.
Runs in your browser. Your input stays on your device.
Convert text or any file to Base64 and back. Text is handled as UTF-8, so emoji, Arabic, Urdu, Chinese, and every other script come out exactly as they went in.
Decoding accepts standard and URL-safe Base64, with or without padding. Spaces and line breaks are ignored, and a data:…;base64, prefix is removed automatically.
Opens a file from your device. The file is read in your browser and is not uploaded.
Showing a large file in the editor can make the page slow or unresponsive for several seconds.
0 characters · 0 B
0 characters · 0 B
Privacy: This tool runs in your browser. Your input is processed on your device and is never uploaded to a server.
Text with Chinese, Arabic, and an emoji, encoded as standard Base64 of its UTF-8 bytes.
Hello, 世界! 👋 مرحباSGVsbG8sIOS4lueVjCEg8J+RiyDZhdix2K3YqNinNo. Base64 is an encoding, not encryption, and it provides no security at all. It only rewrites bytes as 64 printable characters so binary data can pass through systems built for text, such as email, JSON, or HTML. Anyone can decode it instantly without a key or password, so never use it to protect passwords, tokens, or personal data.
btoa() only understands characters in the Latin-1 range. It throws an error for emoji, Arabic, Urdu, or Chinese text, and it silently encodes accented Latin letters such as ë as single Latin-1 bytes rather than UTF-8. This tool converts text to UTF-8 bytes first and then encodes them, which matches what most programming languages, APIs, and command-line tools produce.
Standard Base64 uses + and /, which have special meanings in URLs and file names. The URL-safe alphabet from RFC 4648 replaces them with - and _, and the = padding at the end is often dropped. JSON Web Tokens use this form. When decoding, this tool accepts both alphabets, with or without padding.
Every 3 bytes of input become 4 characters of output, so encoded data is about 33% larger, plus up to two padding characters. That overhead is the price of representing arbitrary bytes using only safe, printable characters.
Yes. Paste the Base64 in Decode mode. When the decoded bytes are not readable UTF-8 text, the tool says so and offers Download to save them as a file. If the input starts with a data URI prefix such as data:image/png;base64, the prefix is removed and the file type is used to name the download.
Tutorial Published
Percent-encode text for URLs or decode it back, with clear errors and a breakdown of every URL part and query parameter.
Decode JSON Web Tokens in your browser: header, payload, and claims with expiry times, plus warnings for risky tokens.