Fix Excel Power Query HTTP 400 Errors for Unicode URLs
Question details
Access a website with an international domain name from Excel Power Query without an HTTP 400 error.

- 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.
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.
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.
In Excel, open Data > Queries & Connections, then select the affected query and choose Edit.
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.
Select Done, then use Home > Refresh Preview. If the preview loads, select Home > Close & Load to return the data to Excel.

Investigate the response and report the Power Query issue
Use this approach if the Punycode URL also fails or you need to report inconsistent URL handling.
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.

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.




