How to encode or decode Base64
- Choose Encode or Decode.
- Type or paste text, or open a file to encode it.
- Copy the result or download it.
Text is encoded as UTF-8, so accented letters and emoji survive the round trip exactly.
Questions
Is Base64 encryption?
No. Base64 only turns data into plain letters and digits so it can travel through text-only systems such as email or JSON. Anyone can decode it, so never use it to hide passwords.
How do I turn an image into a data URL?
Keep "Encode" selected, press Open file, choose the image, and turn on "As data: URL". The result can be pasted into HTML or CSS as an image source.
What is URL-safe Base64?
It replaces + and / with - and _ and drops the = padding, so the result can sit in a URL or file name without being changed. JWTs use this form.
What if the decoded result is not text?
The tool detects it and offers the data as a file download, naming it by type when it recognizes PNG, JPEG, GIF, PDF, or ZIP data.
Credits
Built by OneTooling using standard browser features. No third-party code runs on your data.