Skip to content
A jQuery Plugin to show password reveal button beside password fields (inspired by Windows 8 password field).
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


Passeye is a small jQuery Plugin (less than a Kilobyte!) to show password reveal button beside password fields in your forms. It is inspired by Windows 8 password field where user gets small "Eye" icon beside password text-box to reveal password with a single click.

It is AMD-ready plugin, and hence can be loaded as a module into your webapp via CommonJS-complaint module loader.


Include jquery.passeye.min.js from dist folder into your webpage as follows:

<script type="text/javascript" src="js/jquery.passeye.min.js"></script>

It provides a single method called passeye() which you can call on selected Password input as follows:

Your form in page:

<form id="myform">
    <input type="text" name="name"/>
    <input type="text" name="email"/>
    <input type="password" name="password" id="passwordBox" placeholder="Something unique..."/>

Calling passeye() on Password field:


Calling this method will enable Password-revealing "Eye" beside the Password box (to the right), which appears once you type the password.


Click and hold that eye to show password and release mouse button to hide it back.


Available Options

Passeye provides some configuration options which you can additionally provide as Object into passeye method to control its behavior. All config options are optional.

  • eyecon: Valid HTML character to use as icon to reveal password on Mousedown. Defaults to '☉' (&#9737;).
  • rtl: Set this flag to true to make sure Passeye confirms with RTL paradigms. Defaults to false.
  • cls: CSS class to apply parent container (span) of Password field with Passeye. Defaults to passeye-password-field.
  • passeyeCls: CSS class for Passeye element. Defaults to passeye-btn.

Config Usage Example

    eyecon: '&infin;'   // Will show infinity icon as revealer.

Important Note

  • Passeye doesn't have any styles bound to it and hence it will not alter your defined styles so you're free to make it look the way you want using your own CSS.
  • Since Password revealing is supported by default in IE10 and higher, using Passeye under these browsers will show native revealer as well as Passeye, so it's on your part to take care of the browsers! =D

License and Author

Kushal Pandya (

Licensed under GPLv3.

You can’t perform that action at this time.