---
title: "Encode Unsafe Characters in URLs to Prevent Errors | Drosera SEO"
description: "A URL on your page contains characters (like spaces, \", or &lt;) that are not safe for use in web addresses. These characters can be misinterpreted by browsers…"
image: "https://droseraseo.com/static/images/drosera-og-image.png"
canonical: "https://www.droseraseo.com/en/technical-seo/link-analyzer/unsafe-characters-in-url"
language: "en"
---

# Encode Unsafe Characters in URLs to Prevent Errors

Link Analyzer

## What is this warning?

A URL on your page contains characters (like spaces, `"`, or <`) that are not safe for use in web addresses. These characters can be misinterpreted by browsers and servers, leading to broken links and errors. To fix this, these characters need to be 'percent-encoded' into a safe format.

## How to Fix This Issue

### How to Fix It

#### The Problem

```
https://example.com/search?q=my search query
```

#### The Solution

Replace the unsafe characters with their percent-encoded equivalents. For example, a space becomes `%20`.

```
https://example.com/search?q=my%20search%20query
```

#### Why This Works

Properly encoding URLs ensures that they are correctly interpreted by all web systems, preventing broken links and ensuring a reliable user experience.

### SEO Impact

This issue can affect your site's search engine rankings and user experience. Addressing it promptly helps ensure optimal performance and visibility in search results.

### Automatic Detection

Drosera SEO automatically checks for this warning during site analysis, along with hundreds of other technical SEO issues.

## Other Link Analyzer issues

- [Clean Up Internal Links by Removing Tracking Parameters](https://www.droseraseo.com/en/technical-seo/link-analyzer/tracking-parameters-in-url)
- [Clean Up URLs by Removing the Default HTTP Port](https://www.droseraseo.com/en/technical-seo/link-analyzer/default-http-port-in-url)
- [Clean Up URLs by Removing the Default HTTPS Port](https://www.droseraseo.com/en/technical-seo/link-analyzer/default-https-port-in-url)
- [Consolidate Anchor Text for Clearer SEO Signals](https://www.droseraseo.com/en/technical-seo/link-analyzer/inconsistent-anchor-text)
- [Enhance Security by Upgrading Insecure HTTP Links to HTTPS](https://www.droseraseo.com/en/technical-seo/link-analyzer/insecure-http-link)
- [Fix Broken Internal Links (4xx Errors) to Improve User Experience](https://www.droseraseo.com/en/technical-seo/link-analyzer/link-returned-client-error)
- [Improve SEO and Accessibility by Adding Descriptive Anchor Text](https://www.droseraseo.com/en/technical-seo/link-analyzer/empty-anchor-text)
- [Improve User Experience by Replacing URL Anchor Text with Descriptive Text](https://www.droseraseo.com/en/technical-seo/link-analyzer/url-as-anchor-text)
- [Invalid URL Format in Links: Common Causes and How to Fix Them](https://www.droseraseo.com/en/technical-seo/link-analyzer/invalid-url-format)
- [Investigate Link Redirect Chains](https://www.droseraseo.com/en/technical-seo/link-analyzer/failed-to-check-link-redirects)
- [Investigate Links Causing Server Errors (5xx Errors)](https://www.droseraseo.com/en/technical-seo/link-analyzer/link-returned-server-error)
- [Investigate Links That Could Not Be Checked](https://www.droseraseo.com/en/technical-seo/link-analyzer/failed-to-check-link-status)
- [Remove Empty Fragments from Links for Cleaner URLs](https://www.droseraseo.com/en/technical-seo/link-analyzer/empty-fragment-in-link)
- [Replace Generic Anchor Text with Descriptive Keywords for Better SEO](https://www.droseraseo.com/en/technical-seo/link-analyzer/generic-anchor-text)
- [Shorten URLs for Better SEO and User Experience](https://www.droseraseo.com/en/technical-seo/link-analyzer/url-too-long)
- [Verify Size of Linked Files](https://www.droseraseo.com/en/technical-seo/link-analyzer/failed-to-check-file-size)
- [Warn Users Before Linking to Large Files](https://www.droseraseo.com/en/technical-seo/link-analyzer/large-file-linked)

## See what's true on your own site

Crawl it and get this check, with 300+ others, as URL-level findings you can open and confirm.

[Download Free Trial](https://www.droseraseo.com/en/free-trial) [Purchase Single License](https://www.droseraseo.com/buy/single)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.droseraseo.com/#organization","name":"Fiscus Technology, LLC","url":"https://www.droseraseo.com/","logo":"https://www.droseraseo.com/static/images/drosera.png","founder":{"@type":"Person","name":"Seth Black"}},{"@type":"WebSite","@id":"https://www.droseraseo.com/#website","name":"Drosera SEO","url":"https://www.droseraseo.com/","publisher":{"@id":"https://www.droseraseo.com/#organization"}},{"@type":"TechArticle","@id":"https://www.droseraseo.com/en/technical-seo/link-analyzer/unsafe-characters-in-url#article","headline":"Encode Unsafe Characters in URLs to Prevent Errors","name":"Encode Unsafe Characters in URLs to Prevent Errors","description":"A URL on your page contains characters (like spaces, \", or &lt;) that are not safe for use in web addresses. These characters can be misinterpreted by browsers and servers, leading to broken links and errors. To fix this, these characters need to be 'percent-encoded' into a safe format.","url":"https://www.droseraseo.com/en/technical-seo/link-analyzer/unsafe-characters-in-url","image":{"@type":"ImageObject","url":"https://www.droseraseo.com/static/images/drosera-og-image.png","width":1200,"height":630},"author":{"@type":"Person","name":"Seth Black","url":"https://www.droseraseo.com/about"},"publisher":{"@id":"https://www.droseraseo.com/#organization"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.droseraseo.com/en/technical-seo/link-analyzer/unsafe-characters-in-url"},"inLanguage":"en-US","keywords":"technical SEO, SEO warning, Seth Black&#39;s SEO Analyzer"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.droseraseo.com/"},{"@type":"ListItem","position":2,"name":"Technical SEO Warnings","item":"https://www.droseraseo.com/en/technical-seo"},{"@type":"ListItem","position":3,"name":"Encode Unsafe Characters in URLs to Prevent Errors","item":"https://www.droseraseo.com/en/technical-seo/link-analyzer/unsafe-characters-in-url"}]}]}
```
