Is there a way to force Google Chrome to remember passwords for sites that have autocomplete turned off?


I am a programmer, but ideally, I'd like a method that I could help regular users implement, too.

  • 1
    I'm assuming you've got "Offer to save passwords" turned on.
    – ChrisF
    Commented Sep 22, 2009 at 22:18
  • @ChrisF - yes, I do. Commented Sep 23, 2009 at 9:16
  • Sorry, but I had to ask.
    – ChrisF
    Commented Sep 23, 2009 at 11:38
  • 4
    I feel it needs to be said: giving web sites the ability to make your browser seem broken is not a feature browsers should implement.
    – Kirk Woll
    Commented Jan 23, 2014 at 20:43

11 Answers 11


use the autocomplete=on extension. it changes 'autocomplete=off' to 'autocomplete=on' in web pages, so your passwords will be remembered.

  • 1
    Chrome extensions have come along since I asked this question. Thanks for pointing this one out. Commented Dec 23, 2009 at 12:53
  • What about chrome for Android? Touch keyboard and passwords are not compatible.
    – Ivan G.
    Commented Aug 1, 2012 at 10:23
  • 1
    Do note, that author still can make a form that will absolutely won't remember history. Commented Aug 21, 2012 at 19:20
  • 8
    "Item not found. This item may have been removed by its author." Commented Jan 14, 2015 at 8:07
  • 2
    what about this new updated one; chrome.google.com/webstore/detail/… Commented Feb 24, 2015 at 22:01

Workaround: use a bookmarklet

This is not really a solution, but you can hack a workaround for this if you know a little Javascript by making a bookmarklet that fills out the username and password fields. This would work:

  1. Create a bookmark in your toolbar area by dragging the favicon from any website into that area.
  2. Right-click that bookmark and choose Edit
  3. Change the Name field to whatever you like
  4. In the URL area, enter some javascript that will fill in the desired fields.
  5. Click OK to save that.
  6. Now you can click that bookmarklet to fill those fields

For example, if the page you want to fill in has fields with IDs of 'user_name' and 'password', this javascript would fill them with whatever you define near the beginning.


This is not secure at all, of course, if anyone you don't trust may open your browser; they can click to edit this and see your login info.

But it's not much worse than having the browser remember your passwords if it doesn't use a master password to encrypt them; some digging around in the menus will let you view those. And anyway, you shouldn't let people you don't trust use your computer.

  • 3
    +1 Nice. This is what I use on a site which uses jQuery javascript:$("#username").val("username");$("#password").val("password");
    – IsmailS
    Commented Apr 12, 2012 at 4:00
  • This requires storing your password unencrypted in your code, which is not advisable. The password manager that saves these things for you uses encryption.
    – Adam Katz
    Commented Jul 23, 2018 at 19:22

If you have a Password Manager extension installed, Chrome disables this internal feature if it detects such a Password Manager. Temporarily disabling the extension will allow you to use the built in mechanism.

Older answers which are now obsolete:

Chrome has native support for it: If you enable chrome://flags/#enable-password-force-saving then you can right click on the password field and instruct the browser to store it.

It's now been renamed to chrome://flags/#PasswordForceSaving (Chrome 65 and possibly some earlier versions)

  • 2
    +1 for native solution that doesn't require another extension
    – jgawrych
    Commented Mar 16, 2017 at 23:58
  • Somebody downvoted this answer without commenting why. FWIW, if you have a Password Manager extension installed, Chrome may disable this internal feature if it detects such a Password Manager.
    – Daniel F
    Commented Feb 17, 2018 at 9:29
  • 9
    I have Chrome 77, and chrome://flags/#PasswordForceSaving appears to be completely gone now.
    – browly
    Commented Sep 26, 2019 at 21:32

I often do the following in Firefox/Firebug:

  • Right click form, click "Inspect element"
  • Look for the attribute autocomplete="off" (usually on the form tag)
  • Right click "autocomplete" then click "Remove attribute..."

I can't find a way to delete attributes with Chrome's Developer Tools, but you can change it to autocomplete="on" or change the attribute name to e.g. "width".

  • 2
    But when the page is reloaded, the autocomplete attribute will be reset to "off", defeating the purpose; Chrome will remember the password but won't fill it in. Commented Jul 22, 2011 at 3:36
  • @amph At the time of writing, doing this did work. Removing autocomplete brings up the prompt to save the password, and when you return it filled it in, even if autocomplete was off. Maybe that doesn't happen any more. Commented Jul 22, 2011 at 11:44
  • This works in the latest version of Chrome (21.0.1180.89) -- right-click on username and password form fields, "Inspect Element". Change autocomplete="off" to autocomplete="on". Then submit form. Commented Sep 4, 2012 at 14:52
  • Works with FF but I did not get it to work with Salesforce in Chrome Version 33.0.1750.152 Ubuntu 12.04 (256984)..
    – jcalfee314
    Commented May 16, 2014 at 17:48

Here is a bookmarklet that removed the autocomplete. Create a new bookmark on your toolbar and save this long line as the url:

  • 2
    Everything except ie has a selector query, so you can use much shorter version: var e= document.querySelectorAll("input[autocomplete=off]"); for(var i=0; i<e.length; i++) { e[i].setAttribute("autocomplete", "on"); }
    – Nux
    Commented Apr 29, 2013 at 6:55

In Chrome right click the desired field and "Inspect element"

  • Change autocomplete="off" to autocomplete="on"
  • Input data and submit the form
  • Chrome will ask you to remember the password
  • When you return, it may not display the password until after you attempt submitting once.

Instead of relying on the webpage to support password saving, you can instead overwrite the whole page with an HTML form that is guaranteed to work:

  1. Press Ctrl+Shift+I

  2. Click on the "Console" tab

  3. Paste the following JavaScript into the console and press Enter

    document.getElementsByTagName("body")[0].innerHTML='<form action=# method=post><input name=identifier><input type=password name=password><input type=submit></form>'

  4. Important: Close the developer panel by pressing Ctrl+Shift+I again; otherwise your browser won't display the password save dialog.

  5. Enter the username and password you want your browser to save, then click "Submit".

  6. Your browser should then confirm if you would like to 'remember' these credentials.



  • Also works in Edge!
    – wjandrea
    Commented Oct 30, 2017 at 20:52
  • This works great for my company's site that has a few password fields on the same page. Thanks!
    – wjandrea
    Commented May 9, 2018 at 20:46
  • This worked great on HDFC Bank. It converts any password into long 64 char string. Chrome saves that. This code (with replacing the first part with document.querySelector("body").) worked as charm. I have saved it as bookmarklet.
    – DavChana
    Commented Apr 30, 2021 at 5:49

For some websites, Firefox will let you save the password where Chrome will not. So you can save the password in Firefox, and import it into Chrome.

  1. In Chrome, go to SettingsImport bookmarks and settings
  2. Select Mozilla Firefox
  3. Uncheck everything except Saved passwords (check Autofill form data as well if you also want Chrome to autofill the username).
  4. Click Import

These instructions are based on Chrome version 62.

This answer is based on floatingstar's answer on a similar question.


From Stable Channel Update:

Chrome will now offer to remember and fill password fields in the presence of autocomplete=off.

This feature has been implemented in the Google Chrome 34.0.1847.116 Stable channel for Windows, Mac, and Linux.

  • Unfortunately, this doesn't work with the Hipchat email/username field, I think because it's on a separate page from the password field.
    – wjandrea
    Commented Nov 1, 2017 at 20:24

I just entered my username and password in the value fields in the form by inspecting the elements and saved that as a html page, grabbed url from that page and I book marked this new url, its working for me :). Thanks.

  • Could you explain this in more details? It's a little vague what you're saying. Maybe show a screenshot?
    – slm
    Commented Jun 18, 2013 at 16:36
  • 2
    If I understand you, instead of going to example.com/login, you now visit file://my_copy_site.html and log in, which redirects you to example.com/main_page. If that's true, clever, but beware that the real site may change out from under your copy; eg, your form might submit to a URL that they've removed. Commented Jun 18, 2013 at 18:31
  • Thanks! :) Nothing above worked for me somehow, except your solution!
    – Crocode
    Commented Oct 8, 2015 at 23:49

You can use the Roboform Chrome extension.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .