• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. Technologie Internetowe dla developerów
  2. JavaScript
  3. Dokumentacja referencyjna JavaScript
  4. Obiekty
  5. decodeURIComponent()

This page was translated from English by the community, but it's not maintained and may be out-of-date. To help maintain it, learn how to activate locales.

In this article

  • Podsumowanie
  • Składnia
  • Opis
  • Zobacz także

Related Topics

  1. JavaScript
  2. Tutorials:
  3. Complete beginners
    1. JavaScript basics
    2. JavaScript first steps
    3. JavaScript building blocks
    4. Introducing JavaScript objects
  4. JavaScript Guide
    1. Introduction
    2. Grammar and types
    3. Control flow and error handling
    4. Loops and iteration
    5. Functions
    6. Expressions and operators
    7. Numbers and dates
    8. Text formatting
    9. Regular expressions
    10. Indexed collections
    11. Keyed collections
    12. Working with objects
    13. Details of the object model
    14. Using promises
    15. Iterators and generators
    16. Meta programming
    17. JavaScript modules
  5. Intermediate
    1. Client-side JavaScript frameworks
    2. Client-side web APIs
    3. A re-introduction to JavaScript
    4. JavaScript data structures
    5. Equality comparisons and sameness
    6. Closures
  6. Advanced
    1. Inheritance and the prototype chain
    2. Strict mode
    3. JavaScript typed arrays
    4. Memory Management
    5. Concurrency model and Event Loop
  7. References:
  8. Built-in objects
    1. AggregateError
    2. Array
    3. ArrayBuffer
    4. AsyncFunction
    5. Atomics
    6. BigInt
    7. BigInt64Array
    8. BigUint64Array
    9. Boolean
    10. DataView
    11. Date
    12. decodeURI()
    13. decodeURIComponent()
    14. encodeURI()
    15. encodeURIComponent()
    16. Error
    17. Deprecated escape()
    18. eval()
    19. EvalError
    20. FinalizationRegistry
    21. Float32Array
    22. Float64Array
    23. Function
    24. Generator
    25. GeneratorFunction
    26. globalThis
    27. Infinity
    28. Int16Array
    29. Int32Array
    30. Int8Array
    31. InternalError
    32. Intl
    33. isFinite()
    34. isNaN()
    35. JSON
    36. Map
    37. Math
    38. NaN
    39. Number
    40. Object
    41. parseFloat()
    42. parseInt()
    43. Promise
    44. Proxy
    45. RangeError
    46. ReferenceError
    47. Reflect
    48. RegExp
    49. Set
    50. SharedArrayBuffer
    51. String
    52. Symbol
    53. SyntaxError
    54. TypedArray
    55. TypeError
    56. Uint16Array
    57. Uint32Array
    58. Uint8Array
    59. Uint8ClampedArray
    60. undefined
    61. Deprecated unescape()
    62. Non-Standard Deprecated uneval()
    63. URIError
    64. WeakMap
    65. WeakRef
    66. WeakSet
    67. WebAssembly
  9. Expressions & operators
    1. Addition (+)
    2. Addition assignment (+=)
    3. Assignment (=)
    4. async function expression
    5. await
    6. Bitwise AND (&)
    7. Bitwise AND assignment (&=)
    8. Bitwise NOT (~)
    9. Bitwise OR (|)
    10. Bitwise OR assignment (|=)
    11. Bitwise XOR (^)
    12. Bitwise XOR assignment (^=)
    13. class expression
    14. Comma operator (,)
    15. Conditional (ternary) operator
    16. Decrement (--)
    17. delete operator
    18. Destructuring assignment
    19. Division (/)
    20. Division assignment (/=)
    21. Equality (==)
    22. Exponentiation (**)
    23. Exponentiation assignment (**=)
    24. Function expression
    25. function* expression
    26. Greater than (>)
    27. Greater than or equal (>=)
    28. Grouping operator ( )
    29. import
    30. import.meta
    31. in operator
    32. Increment (++)
    33. Inequality (!=)
    34. instanceof
    35. Left shift (<<)
    36. Left shift assignment (<<=)
    37. Less than (<)
    38. Less than or equal (<=)
    39. Logical AND (&&)
    40. Logical AND assignment (&&=)
    41. Logical NOT (!)
    42. Logical nullish assignment (??=)
    43. Logical OR (||)
    44. Logical OR assignment (||=)
    45. Multiplication (*)
    46. Multiplication assignment (*=)
    47. new operator
    48. new.target
    49. null
    50. Nullish coalescing operator (??)
    51. Object initializer
    52. Operator precedence
    53. Optional chaining (?.)
    54. Property accessors
    55. Remainder (%)
    56. Remainder assignment (%=)
    57. Right shift (>>)
    58. Right shift assignment (>>=)
    59. Spread syntax (...)
    60. Strict equality (===)
    61. Strict inequality (!==)
    62. Subtraction (-)
    63. Subtraction assignment (-=)
    64. super
    65. this
    66. typeof
    67. Unary negation (-)
    68. Unary plus (+)
    69. Unsigned right shift (>>>)
    70. Unsigned right shift assignment (>>>=)
    71. void operator
    72. yield
    73. yield*
  10. Statements & declarations
    1. async function
    2. block
    3. break
    4. class
    5. const
    6. continue
    7. debugger
    8. do...while
    9. empty
    10. export
    11. for
    12. for await...of
    13. for...in
    14. for...of
    15. function declaration
    16. function*
    17. if...else
    18. import
    19. label
    20. let
    21. return
    22. switch
    23. throw
    24. try...catch
    25. var
    26. while
    27. Deprecated with
  11. Functions
    1. The arguments object
    2. Arrow function expressions
    3. Default parameters
    4. getter
    5. Method definitions
    6. Rest parameters
    7. setter
  12. Classes
    1. Class static initialization blocks
    2. constructor
    3. extends
    4. Private class features
    5. Public class fields
    6. static
  13. Errors
    1. Warning: -file- is being assigned a //# sourceMappingURL, but already has one
    2. TypeError: invalid Array.prototype.sort argument
    3. Warning: 08/09 is not a legal ECMA-262 octal constant
    4. RangeError: radix must be an integer
    5. SyntaxError: invalid regular expression flag "x"
    6. SyntaxError: return not in function
    7. TypeError: X.prototype.y called on incompatible type
    8. ReferenceError: can't access lexical declaration 'X' before initialization
    9. TypeError: can't access property "x" of "y"
    10. TypeError: can't assign to property "x" on "y": not an object
    11. TypeError: can't define property "x": "obj" is not extensible
    12. TypeError: property "x" is non-configurable and can't be deleted
    13. TypeError: can't redefine non-configurable property "x"
    14. TypeError: cyclic object value
    15. TypeError: can't access dead object
    16. SyntaxError: applying the 'delete' operator to an unqualified name is deprecated
    17. ReferenceError: deprecated caller or arguments usage
    18. Warning: expression closures are deprecated
    19. SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated
    20. SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
    21. Warning: String.x is deprecated; use String.prototype.x instead
    22. Warning: Date.prototype.toLocaleFormat is deprecated
    23. SyntaxError: test for equality (==) mistyped as assignment (=)?
    24. TypeError: setting getter-only property "x"
    25. SyntaxError: Unexpected '#' used outside of class body
    26. SyntaxError: identifier starts immediately after numeric literal
    27. SyntaxError: illegal character
    28. TypeError: cannot use 'in' operator to search for 'x' in 'y'
    29. RangeError: invalid array length
    30. ReferenceError: invalid assignment left-hand side
    31. TypeError: invalid assignment to const "x"
    32. RangeError: invalid date
    33. SyntaxError: for-in loop head declarations may not have initializers
    34. SyntaxError: a declaration in the head of a for-of loop can't have an initializer
    35. TypeError: invalid 'instanceof' operand 'x'
    36. TypeError: 'x' is not iterable
    37. SyntaxError: JSON.parse: bad parsing
    38. SyntaxError: Malformed formal parameter
    39. URIError: malformed URI sequence
    40. SyntaxError: missing ] after element list
    41. SyntaxError: missing : after property id
    42. SyntaxError: missing } after function body
    43. SyntaxError: missing } after property list
    44. SyntaxError: missing formal parameter
    45. SyntaxError: missing = in const declaration
    46. SyntaxError: missing name after . operator
    47. SyntaxError: missing ) after argument list
    48. SyntaxError: missing ) after condition
    49. SyntaxError: missing ; before statement
    50. TypeError: More arguments needed
    51. RangeError: repeat count must be non-negative
    52. TypeError: "x" is not a non-null object
    53. TypeError: "x" has no properties
    54. SyntaxError: missing variable name
    55. TypeError: can't delete non-configurable array element
    56. RangeError: argument is not a valid code point
    57. TypeError: "x" is not a constructor
    58. TypeError: "x" is not a function
    59. ReferenceError: "x" is not defined
    60. RangeError: precision is out of range
    61. Error: Permission denied to access property "x"
    62. TypeError: "x" is read-only
    63. SyntaxError: redeclaration of formal parameter "x"
    64. TypeError: Reduce of empty array with no initial value
    65. SyntaxError: "x" is a reserved identifier
    66. RangeError: repeat count must be less than infinity
    67. Warning: unreachable code after return statement
    68. SyntaxError: "use strict" not allowed in function with non-simple parameters
    69. InternalError: too much recursion
    70. ReferenceError: assignment to undeclared variable "x"
    71. ReferenceError: reference to undefined property "x"
    72. SyntaxError: Unexpected token
    73. TypeError: "x" is (not) "y"
    74. SyntaxError: function statement requires a name
    75. SyntaxError: unterminated string literal
  14. Misc
    1. JavaScript technologies overview
    2. Lexical grammar
    3. JavaScript data structures
    4. Enumerability and ownership of properties
    5. Iteration protocols
    6. Strict mode
    7. Transitioning to strict mode
    8. Template literals
    9. Deprecated features

In this article

  • Podsumowanie
  • Składnia
  • Opis
  • Zobacz także

decodeURIComponent()

Podsumowanie

Dekoduje komponent Jednolitego Identyfikatora Zasobu (URI) stworzonego przez encodeURIComponent() lub podobną.

Składnia

decodeURIComponent(encodedURI)

Parametry

encodedURI 
Odkodowany komponent Jednolitego Identyfikatora Zasobu.

Opis

Podmienia każdą sekwencję ucieczki (ang. escape sequence ) w zakodowanym komponencie URI znakiem, który ona reprezentuje.

Zobacz także

  • decodeURI()
  • encodeURI()
  • encodeURIComponent()

Last modified: 11 lut 2021, by MDN contributors

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.