VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-window-atob-method/

⇱ HTML DOM Window atob( ) Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Window atob( ) Method

Last Updated : 15 Jun, 2023

The Window atob() method is used for decoding a base-64 encoded string. It is used to decode a string of data which has been encoded using the btoa() method. It returns a string which represents the decoded string. 

Syntax :

window.atob(EncodedString)

Parameters Used :

  • EncodedString : It is a mandatory parameter which specifies the encoded string.

Below program illustrates the Window atob() Method : 

Decoding a string encoded using the btoa() method. 

Output: 

👁 Image
After clicking the button:

👁 Image
Supported Browsers: The browser supported by Window atob( ) Method are listed below:

  • Google Chrome 4
  • Edge 12
  • Internet Explorer 10
  • Firefox 1
  • Opera 10.5
  • Safari 3
Comment
Article Tags: