Free Webmaster Tool

IIS web.config Rule Converter

Convert Apache .htaccess and Nginx rewrite rules into IIS web.config URL Rewrite syntax, and convert web.config rules back to Apache or Nginx. Built for developers migrating between Windows/IIS and Linux hosting environments.

  • ✔ Apache / Nginx → web.config
  • ✔ web.config → Apache / Nginx
  • ✔ Free Forever
  • ✔ No Registration Required
.htaccess / nginx web.config

Convert Apache, Nginx and IIS web.config Rewrite Rules in Seconds


Migrating a site to or from Windows/IIS hosting usually means manually rewriting URL rules into a completely different format: IIS's URL Rewrite Module uses XML instead of the line-based directives found in Apache's .htaccess or Nginx's nginx.conf.
Our free web.config converter automatically translates common RewriteRule, RewriteCond, and Redirect directives (or Nginx's rewrite, return, and location blocks) into IIS's <system.webServer><rewrite> rule format, and back again.
As with any cross-platform conversion, IIS uses .NET regular expressions rather than PCRE, so review generated rules before deploying to production — especially anything involving complex regex lookarounds or server-variable conditions.

How to Use the web.config Converter

1. Choose Format

Select whether the left editor contains Apache or Nginx syntax.

2. Paste Rules

Paste your existing rules or web.config XML into the appropriate editor.

3. Click Convert

Convert to web.config, or convert web.config back to your chosen format.

4. Review & Deploy

Check the validation report, then copy the result into your server configuration.

Apache / Nginx
IIS web.config

Validation Report

Ready for conversion...
Web Server Comparison

Apache vs Nginx vs IIS

A quick comparison of the three most common web server platforms and their rewrite/redirect configuration approach.

Feature Apache HTTP Server Nginx IIS (Windows)
Config FormatPlain text (.htaccess / httpd.conf)Plain text (nginx.conf)XML (web.config)
Rewrite Enginemod_rewriteBuilt-in rewrite moduleURL Rewrite Module
Regex FlavorPCREPCRE.NET Regex
Per-directory OverridesNative (.htaccess)Not supportedNative (web.config per folder)
PlatformCross-platformCross-platformWindows Server
GUI ManagementLimitedLimitedIIS Manager
Best ForPHP apps, WordPress, shared hostingHigh-traffic sites, reverse proxy, CDNASP.NET apps, Windows-based hosting

Instant Conversion

Convert rules in milliseconds, right in your browser.

Private

Nothing is uploaded — everything runs client-side.

Bidirectional

Apache/Nginx → web.config, and back again.

Responsive

Works on desktop, tablet, and mobile.

FAQsweb.config Converter

Can this tool convert web.config to .htaccess and back?

Yes. Choose Apache or Nginx as your source format, then use the buttons to convert in either direction between that format and IIS web.config.

Why does IIS use XML instead of plain text rules?

IIS's URL Rewrite Module stores rules inside the web.config file, which follows .NET's standard XML configuration format used across IIS and ASP.NET.

Will every rule convert perfectly?

No. IIS uses .NET regular expressions rather than PCRE, and complex RewriteCond logic or nested Nginx location blocks may need manual adjustment after conversion.

Is my configuration uploaded anywhere?

No. All conversion happens inside your browser using JavaScript. Your rules are never transmitted to our servers.

24/7 Support Available:

Our support team is here to assist you around the clock. Get Expert Help, Anytime.