• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Sign in
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • Browser Extensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
    • Français (fr)
    • 中文 (简体) (zh-CN)
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article

ByteString

  1. Web technology for developers
  2. Web APIs
  3. ByteString
Jump to:
  1. Specifications
  2. See also

ByteString is a UTF-8 String that corresponds to the set of all possible sequences of bytes. ByteString maps to a String when returned in JavaScript; generally, it's only used when interfacing with protocols that use bytes and strings interchangably, such as HTTP.

Specifications

Specification Status Comment
Web IDL
The definition of 'ByteString' in that specification.
Candidate Recommendation Initial definition.

See also

  • String
  • StringView – a C-like representation of strings based on typed arrays
  • Binary strings

Document Tags and Contributors

Tags: 
  • API
  • DOM
  • DOM Reference
  • Reference
  • Référence(2)
  • String
  • WebIDL
 Contributors to this page: chrisdavidmills, ddbeck
 Last updated by: chrisdavidmills, Mar 4, 2015, 10:50:37 PM
Related Topics
  1. Document Object Model
  2. ByteString
  3. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. Attr
    4. CDATASection
    5. CSSPrimitiveValue
    6. CSSValue
    7. CSSValueList
    8. CharacterData
    9. ChildNode
    10. Comment
    11. CustomEvent
    12. DOMConfiguration
    13. DOMError
    14. DOMErrorHandler
    15. DOMException
    16. DOMImplementation
    17. DOMImplementationList
    18. DOMImplementationRegistry
    19. DOMImplementationSource
    20. DOMLocator
    21. DOMObject
    22. DOMParser
    23. DOMPoint
    24. DOMRect
    25. DOMString
    26. DOMTimeStamp
    27. DOMTokenList
    28. DOMUserData
    29. Document
    30. DocumentFragment
    31. DocumentType
    32. Element
    33. ElementTraversal
    34. Entity
    35. EntityReference
    36. Event
    37. EventTarget
    38. HTMLCollection
    39. MutationObserver
    40. Node
    41. NodeFilter
    42. NodeIterator
    43. NodeList
    44. NonDocumentTypeChildNode
    45. ProcessingInstruction
    46. PromiseResolver
    47. Range
    48. Text
    49. TextDecoder
    50. TextEncoder
    51. TimeRanges
    52. TreeWalker
    53. TypeInfo
    54. USVString
    55. UserDataHandler
    56. XMLDocument

Learn the best of web development

Get the latest and greatest from MDN delivered straight to your inbox.

Thanks! Please check your inbox to confirm your subscription.

If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.

MDN Web Docs

MDN

  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • Twitter
  • GitHub
Mozilla

Mozilla

  • About
  • Contact Us
  • Donate
  • Firefox
  • Twitter
  • Facebook
  • Instagram
  • Terms
  • Privacy
  • Cookies

© 2005-2018 Mozilla and individual contributors.

Content is available under these licenses.