1. Home
  2. Productivity tools
  3. Meta Refresh & JS Redirect Generator

Meta Refresh & JS Redirect Generator

For site owners who cannot edit server rules and need a simple redirect page.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Meta Refresh & JS Redirect Generator

  1. Fill in the form, or press a sample to see a worked example.
  2. Read the result and any warnings about problems it found.
  3. Copy the output or download it as a file.

Features

  • Meta refresh with the delay you choose
  • Optional JavaScript redirect as a backup
  • Optional canonical tag pointing to the new page; without it the page marks itself noindex
  • Complete page or just the tags
  • Warns that a server 301 is clearer for permanent moves

Supported formats

Input

  • Typed address

You get

  • HTML page

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Meta Refresh & JS Redirect Generator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • A server 301 redirect is clearer to search engines; use meta refresh only where you cannot change the server.
  • A delay of more than a few seconds is bad for visitors and for accessibility.

Guide

Building a redirect page with meta refresh and a script backup

The right way to move a page is a redirect sent by the web server, which tells browsers and search engines in the response itself that the address has changed. Some sites cannot do that. A page hosted on a static file service, a documentation system or a free site builder may allow you to upload an HTML file but not to change server rules. For those cases a small HTML page that forwards visitors can do the job. This generator writes that page.

What the page contains

The head holds a meta element with http-equiv="refresh" and a content value made of the delay and the target, such as 0;url=https://shop.example/new-page. The body holds a short message, “This page has moved to” followed by a link to the new address, and, if you keep the option on, a one-line script that calls window.location.replace to the same address. The script makes the jump happen without adding a step to the browser history. The address is escaped so that quotes and ampersands cannot break the markup.

The delay

A delay of 0 sends the visitor at once. That is almost always what you want. A longer delay is sometimes used for notices such as “you will be redirected in five seconds”, but the tool warns that anything above a few seconds hurts visitors and accessibility, because people who read slowly or use assistive technology may not finish before the page changes. The field accepts whole seconds from 0 to 3600.

Canonical or noindex

The tool offers a switch for a canonical tag. When it is on, the page declares the target address as its canonical, which tells search engines that the target is the page to index. When it is off, the page carries a robots noindex meta tag instead, which asks search engines not to list the redirect page itself. The two are never written together, because a noindex and a canonical on the same page send conflicting signals.

The complete page or just the tags

Two outputs are provided. The complete page is a full HTML file you can save as an old address such as old-page.html and upload. The tags-only output holds just the head tags, for a page that already exists and needs to forward. Check the saved file in a browser, and test it with a crawler or the URL inspection tool of a search engine.

A worked example

The sample moves a page to https://shop.example/new-page with no delay, the canonical option and the script on. The page opens with a doctype and a title “Redirecting…”, then the line <meta http-equiv="refresh" content="0;url=https://shop.example/new-page" /> and a canonical link to the same address. The body has window.location.replace("https://shop.example/new-page"); and a paragraph with a link. The result row reads “Delay 0 seconds”. Setting the delay to 3 changes the content value to 3;url=https://shop.example/new-page.

Limits

A meta refresh is not an HTTP status. Browsers follow it, but it is slower, it can break the back button when the page is not replaced and it may not pass signals the way a 301 does. The tool writes the page and never visits either address, so confirm that the target works. For a whole site, use the rules of your server or host, and keep the redirect pages only for what you cannot configure.

Checked against the current version of the Meta Refresh & JS Redirect Generator on .

Frequently asked questions

Is a zero-second meta refresh treated like a 301?

Google has said it treats an instant meta refresh much like a permanent redirect, but it is a weaker signal than one sent by the server and not every crawler follows it. Use it only where you cannot set server rules, and prefer a 301 whenever you can.

Why does the page need a visible link?

A refresh can be blocked or delayed, scripts can be disabled and some visitors need time to read what is happening. A plain link in the body lets everyone continue, and it gives crawlers an ordinary link to follow as a fallback.

Is meta refresh as good as a 301 redirect?

No. A server 301 is the clearest signal for a permanent move. A zero-second meta refresh is treated similarly by Google, but it is a fallback for hosts where you cannot set server rules.

Why include a fallback link?

Some visitors block refresh or scripts, and screen-reader users may need time to follow a redirect. A visible link keeps the page usable.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.