Skip to content

About

A lightweight and convenient browser bookmarklet to quickly activate Steam product keys directly from your browser. Clicking it prompts you for a key, validates its format, and instantly opens the official Steam redemption page with your code pre-filled. Fast, open-source, and requires no external software.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Steam Activate Key

A lightweight and convenient browser bookmarklet to quickly activate Steam product keys directly from your browser.

Instead of manually navigating to the Steam Store activation page, clicking the bookmarklet prompts you for a key, validates its format, and opens the official Steam key redemption page with your key pre-filled and ready to activate.


Features

  • Instant Activation: Opens https://store.steampowered.com/account/registerkey?key=YOUR_KEY in a new tab with your key pre-filled.
  • Input Validation: Checks the input against standard Steam key patterns (AAAAA-BBBBB-CCCCC).
  • Auto-Capitalization: Automatically transforms your key to uppercase.
  • Error Handling: Alerts you if an invalid key format is entered and re-prompts so you can correct it.
  • Graceful Cancellation: Dismisses cleanly when clicking Cancel or pressing Esc without opening any windows.
  • Zero Dependencies: Pure, vanilla JavaScript compatible with any modern web browser (Chrome, Firefox, Edge, Safari, Brave, Opera).

Installation

  1. Make sure your browser's Bookmarks Bar is visible (press Ctrl + Shift + B on Windows/Linux or Cmd + Shift + B on macOS).
  2. Right-click on your bookmarks bar and select Add page or Add bookmark.
  3. Set the Name to Steam Activate Key (or any name you prefer).
  4. In the URL (or Location) field, paste the bookmarklet code from steam-activate-key.js
  5. Click Save.

How to Use

  1. Click the Steam Activate Key bookmarklet on your bookmarks bar.
  2. Enter your Steam product key into the popup prompt dialog.
  3. Choose an action:
    • Click OK: If the key is valid, the Steam activation page opens in a new tab with the key pre-filled. If invalid, an alert will notify you and re-prompt you for a valid key.
    • Click Cancel: Closes the dialog immediately.

Supported Key Format

The script validates keys matching standard Steam activation patterns:

  • XXXXX-XXXXX-XXXXX (3 sets of 5 alphanumeric characters separated by hyphens)

Source Code (Readable)

For transparency and security, here is the readable, unencoded JavaScript source code:

(function () {
  'use strict';
  (() => {
    const baseUrl = 'https://store.steampowered.com/account/registerkey?key=';
    let key = undefined;
    const regExp = /^[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}$/mi;
    let error = false;

    while (typeof key !== 'string' || !regExp.test(key)) {
      if (key === null) {
        return;
      }
      if (error) {
        alert('Invalid Steam key!');
      } else {
        error = true;
      }
      key = prompt('Please enter a Steam key:', undefined);
    }

    const url = baseUrl + key.toString().toUpperCase();
    window.open(url, '_blank');
  })();
})();

License

This project is licensed under the GNU General Public License v3.0.

About

A lightweight and convenient browser bookmarklet to quickly activate Steam product keys directly from your browser. Clicking it prompts you for a key, validates its format, and instantly opens the official Steam redemption page with your code pre-filled. Fast, open-source, and requires no external software.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors