Power Query Problems

Fix Excel Power Query HTTP 400 Errors for Unicode URLs

Steve KSteve K Nov 14, 2026 869 views

Question details

Access a website with an international domain name from Excel Power Query without an HTTP 400 error.

Fix Excel Power Query HTTP 400 Errors for Unicode URLs
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A user imports website data using a URL that contains Unicode characters in its domain name.
Observed behavior
Power Query reports that Web.Contents failed to get contents and returns HTTP 400 Bad Request.
Before you start

Check that the URL opens in a browser and identify the domain name separately from the path and query string. Obtain the domain's Punycode form from a trusted IDN converter or the website owner.

Solution 1Recommended

Replace the Unicode domain with its Punycode form

Use the ASCII-compatible domain name when Power Query rejects an internationalized URL.

Punycode represents an internationalized domain using ASCII characters. For example, the domain bücher.de is represented as xn--bcher-kva.de. Converting the domain does not automatically encode characters in the URL path or query string.

1
Open the query

In Excel, open Data > Queries & Connections, then select the affected query and choose Edit.

2
Update the URL

In Power Query Editor, open Home > Advanced Editor. In the Web.Contents URL, replace only the Unicode domain with its Punycode equivalent, keeping the protocol, path, and query string intact.

3
Test the request

Select Done, then use Home > Refresh Preview. If the preview loads, select Home > Close & Load to return the data to Excel.

Replace the Unicode domain with its Punycode form
If the error remains: The website may reject the request for another reason. Check whether the path or query parameters also require URL encoding, and compare the request with one that works in a browser.
Free Microsoft Office alternative

Work with Excel files in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move existing workbooks into WPS. It does not fix Microsoft Excel Power Query errors.

Open and edit common Microsoft Excel formats, including XLSX and XLSWork with spreadsheet data in a familiar interfaceMove existing workbooks into a lightweight office suiteUse a free alternative for everyday spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does a Unicode URL return HTTP 400 in Power Query?

The error can result from how the URL is handled or from the website rejecting the request. Test the domain's Punycode form in the Web.Contents URL to see whether it resolves the issue.

Should I convert the entire URL to Punycode?

No. Punycode applies to the internationalized domain name. Keep the protocol and other URL components separate; characters in the path or query string may need standard URL encoding instead.

Where can I edit the Web.Contents URL?

Open the affected query from Excel's Data > Queries & Connections pane, then select Home > Advanced Editor in Power Query Editor. Update the URL and refresh the preview.

What should I include when reporting the error?

Use File > Feedback in Excel if available, or a Microsoft Excel support forum. Include your Excel version, the error message, a sanitized example URL, and the result of testing its Punycode domain.