<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WISSID",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure6WISSIDV"
  },
  "title" : "WISSID"
}
-->

# WISSID

The Service Set Identifier (SSID) for a Wi-Fi network, from which applications derive the human-readable network name.

```
struct WISSID
```

## Overview

An SSID represents the identifier for a wireless network, as the Wi-Fi standard defines.
Your app converts this binary data to text when displaying network names to people.
The Wi-Fi standard defines SSIDs as binary values between 1 and 32 bytes long, without specifying a text encoding. This means
SSID data can include:

- Embedded null bytes (`0x00`)
- Control characters and escape sequences
- Non-printable binary data
- Text in various encodings (UTF-8, ASCII, Latin-1, etc.)
- Mixed binary and text content

Don’t assume SSID data represents UTF-8 encoded text. Use [`stringRepresentation(encoding:)`](/documentation/WiFiInfrastructure/WISSID/stringRepresentation(encoding:)) to
safely convert the raw data to a readable format. Since no standard encoding exists for SSIDs, different networks
may use different text encodings or
contain pure binary data. When converting SSIDs to strings:

- Try UTF-8 encoding first, as it’s most common.
- Fall back to other encodings if UTF-8 conversion fails.
- Handle cases where no text representation is possible.
- Consider displaying raw hexadecimal values for non-text SSIDs.

## Topics

### Working with SSIDs as a string

[`init?(String, encoding: String.Encoding)`](/documentation/WiFiInfrastructure/WISSID/init(_:encoding:))

Creates an SSID from a text string using the specified encoding.

[`func stringRepresentation(encoding: String.Encoding) -> String?`](/documentation/WiFiInfrastructure/WISSID/stringRepresentation(encoding:))

Converts the SSID’s raw data to a string representation using the specified encoding.

### Working with raw SSID data

[`init?(Data)`](/documentation/WiFiInfrastructure/WISSID/init(_:))

Creates an SSID from raw binary data.

[`let data: Data`](/documentation/WiFiInfrastructure/WISSID/data)

The raw binary data of the SSID as transmitted over-the-air.

### Getting a description

[`var description: String`](/documentation/WiFiInfrastructure/WISSID/description)

This property provides a readable representation suitable for logging and debugging.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)