Use your browser to decode base64 encoded data

If you are dealing with base64 encoded data you may find useful to know that any modern browser can easily decode it using the Data URI scheme. All you need is pass the encoded data to the browser in the same way as you would enter a regular URL, but of course using the correct structure of the data URI scheme:

The MIME-type and charset parameters are optional, with default values text/plain and US-ASCII but is a good practice to always specify at least the MIME-type.

An example of base64 encoded data is:

which should be decoded to:

Suggested tools for base64 encoding / decoding:

Published by Cristian Radulescu

PHP // MySql // Linux

Join the Conversation


  1. this use full, but do u have a way to automatically convert base 64 urls in a page to simple url?

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.